Module cream.keys
Key-bindings managment
Author:
| David Delassus <david.jose.delassus@gmail.com> |
Functions
| map (statelist, modlist, command, callback) | Add a keybinding |
Tables
| modkeys | All modifier keys mask |
Functions
- map (statelist, modlist, command, callback)
-
Add a keybinding
Parameters
- statelist: List of state where the keybind is affected
-
modlist: List of modifiers key (ie.
{ "Shift", "Control" }) - command: Command
- callback: Function to call when the keybind is activated
Tables
- modkeys
- All modifier keys mask
Fields
- Shift: Shift
- Lock: CapsLock
- Control: Control
- Mod1: Alt
- Mod2: NumLock
- Mod3: The sixth modifier key
- Mod4: Super, Hyper
- Mod5: Mode_switch, ISO_Level3_Shift
- Button1: First button mouse
- Button2: Second button mouse
- Button3: Third button mouse
- Button4: Fourth button mouse
- Button5: Fifth button mouse
- Super: Super
- Hyper: Hyper
- Meta: Meta
- Mask: Mask for all modifier keys