doc(awful.key) Declarative constructor parameters
This commit is contained in:
parent
b63399f656
commit
948506cde1
|
@ -216,11 +216,13 @@ end
|
||||||
--
|
--
|
||||||
-- @constructorfct2 awful.key
|
-- @constructorfct2 awful.key
|
||||||
-- @tparam table args
|
-- @tparam table args
|
||||||
-- @tparam function args.key The key to trigger an event. It can be the character
|
-- @tparam string args.key The key to trigger an event. It can be the character
|
||||||
-- itself of `#+keycode` (**mandatory**).
|
-- itself of `#+keycode`.
|
||||||
-- @tparam function args.modifiers A list of modifier keys. Valid modifiers are:
|
-- @tparam[opt] string args.keygroup The keygroup to trigger an event. This
|
||||||
|
-- parameter must be used as a replacement for the `key` parameter. See
|
||||||
|
-- @{awful.key.keygroup}.
|
||||||
|
-- @tparam table args.modifiers A list of modifier keys. Valid modifiers are:
|
||||||
-- `Any`, `Mod1`, Mod2`, `Mod3`, `Mod4`, `Mod5`, `Shift`, `Lock` and `Control`.
|
-- `Any`, `Mod1`, Mod2`, `Mod3`, `Mod4`, `Mod5`, `Shift`, `Lock` and `Control`.
|
||||||
-- This argument is (**mandatory**).
|
|
||||||
-- @tparam function args.on_press Callback for when the key is pressed.
|
-- @tparam function args.on_press Callback for when the key is pressed.
|
||||||
-- @tparam function args.on_release Callback for when the key is released.
|
-- @tparam function args.on_release Callback for when the key is released.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue