matches
matches: (Keybind, AwtKeyEvent) -> booleanWhether e is this keybind being pressed (or, for a KEY_RELEASED event, released).
Keybind.new(…)| Method | Returns | Description |
|---|---|---|
matches(AwtKeyEvent) | boolean | Whether e is this keybind being pressed (or, for a KEY_RELEASED event, released). |
getKeyCode() | number | The AWT key code; KeyEvent.VK_UNDEFINED for a modifier-only keybind. |
getModifiers() | number | The extended modifier mask. |
toString() | string | Not set, Ctrl, Ctrl+Shift+F1. |
new(number, number) | Keybind | (number, number) -> Keybind: A keybind of AWT key code keyCode and extended modifiers modifiers, normalised (a modifier key as the co… |
new(AwtKeyEvent) | Keybind | |
getModifierForKeyCode(number) | number? | The modifier mask a modifier key's code is (KeyEvent.VK_SHIFT is InputEvent.SHIFT_DOWN_MASK), or nil for any other key. |
| Method | Returns | Description |
|---|---|---|
KeybindClass.new | Keybind | (number, number) -> Keybind: A keybind of AWT key code keyCode and extended modifiers modifiers, normalised (a modifier key as the co… |
matchesmatches: (Keybind, AwtKeyEvent) -> booleanWhether e is this keybind being pressed (or, for a KEY_RELEASED event, released).
getKeyCodegetKeyCode: (Keybind) -> numberThe AWT key code; KeyEvent.VK_UNDEFINED for a modifier-only keybind.
getModifiersgetModifiers: (Keybind) -> numberThe extended modifier mask.
toStringtoString: (Keybind) -> stringNot set, Ctrl, Ctrl+Shift+F1.
newnew: ((number, number) -> Keybind) & ((AwtKeyEvent) -> Keybind)(number, number) -> Keybind: A keybind of AWT key code keyCode and extended modifiers modifiers, normalised (a modifier key as the code becomes a modifier-only keybind).
(AwtKeyEvent) -> Keybind: The keybind of the key event e: its key code and modifiers.
getModifierForKeyCodegetModifierForKeyCode: (number) -> number?The modifier mask a modifier key's code is (KeyEvent.VK_SHIFT is InputEvent.SHIFT_DOWN_MASK), or nil for any other key.