docs: Expand description of binding def strings
This commit is contained in:
parent
1a6527ba56
commit
c7b0034d41
|
@ -28,6 +28,12 @@ local clientbtns = ez.btntable {
|
|||
}
|
||||
```
|
||||
|
||||
Binding definition strings consist of modifier characters and a key or button
|
||||
separated by hyphens, e.g. `M-S-x` is the combination of `Mod4`, `Shift`, and
|
||||
the `x` key.
|
||||
|
||||
Key names longer than 1 character must be surrounded by `<>`, e.g. `M-<Return>`.
|
||||
|
||||
See the [API documentation](https://jcrd.github.io/awesome-ez/) for
|
||||
descriptions of all functions.
|
||||
|
||||
|
|
9
init.lua
9
init.lua
|
@ -55,9 +55,13 @@ end
|
|||
|
||||
--- Parse a key definition string into modifiers and a key.
|
||||
--
|
||||
-- Key definition strings consist of modifier characters and a key separated
|
||||
-- by hyphens, e.g. "M-S-x" is the combination of Mod4, Shift, and the x key.
|
||||
--
|
||||
-- The modifier key strings are: M = Mod4, A = Mod1, S = Shift, C = Control.
|
||||
--
|
||||
-- Key names that are longer than 1 character must be surrounded by <>.
|
||||
-- Key names longer than 1 character must be surrounded by <>,
|
||||
-- e.g. "M-<Return>".
|
||||
--
|
||||
-- @param keydef The key definition string.
|
||||
-- @usage local modkeys, key = ez.util.parse_key("M-<Return>")
|
||||
|
@ -79,6 +83,9 @@ end
|
|||
|
||||
--- Parse a button definition string into modifiers and a button.
|
||||
--
|
||||
-- Button definition strings consist of modifier characters and a key separated
|
||||
-- by hyphens, e.g. "M-S-1" is the combination of Mod4, Shift, and button 1.
|
||||
--
|
||||
-- The modifier key strings are: M = Mod4, A = Mod1, S = Shift, C = Control.
|
||||
--
|
||||
-- @param btndef The button definition string.
|
||||
|
|
Loading…
Reference in New Issue