File awful/key.lua
Author:
Julien Danjou <julien@danjou.info> |
Copyright ©2009 Julien Danjou
Release: v3.3.4
Functions
match (key, pressed_mod, pressed_key) | Compare a key object with modifiers and key. |
new (mod, ...) | Create a new key to use as binding. |
Functions
- match (key, pressed_mod, pressed_key)
-
Compare a key object with modifiers and key.
Parameters
- key: The key object.
- pressed_mod: The modifiers to compare with.
- pressed_key: The key to compare with.
- new (mod, ...)
-
Create a new key to use as binding. This function is useful to create several keys from one, because it will use the ignore_modifier variable to create more key with or without the ignored modifiers activated. For example if you want to ignore CapsLock in your keybinding (which is ignored by default by this function), creatina key binding with this function will return 2 key objects: one with CapsLock on, and the other one with CapsLock off.
Parameters
- mod:
- ...:
Return value:
A table with one or several key objects.See also: