Skip to content

Keybinds

This page documents hooks in the keybinds category.


AddReservedKeybinds(reserved)View Source

Purpose

Allows plugins or modules to add extra reserved key codes before keybind choices are displayed.

Category

Keybinds

Realm

Client

Parameters

table reserved Lookup table keyed by numeric key code. Set reserved[keyCode] to true to reserve a key.

Example Usage

  hook.Add("AddReservedKeybinds", "liaExampleAddReservedKeybinds", function(reserved)
      print("[MyModule] handled AddReservedKeybinds")
  end)

InitializedKeybinds()View Source

Purpose

Runs after saved keybinds are loaded, numeric key lookups are rebuilt, and reserved keys are generated.

Category

Keybinds

Realm

Client

Example Usage

  hook.Add("InitializedKeybinds", "liaExampleInitializedKeybinds", function()
      print("[MyModule] handled InitializedKeybinds")
  end)