Type deai.plugin.xorg:Key

See Connection.key for more information about this type

Methods

new(modifiers, key, intercept)

Add a new key binding

new(modifiers, key, intercept) Binding
Return type:

Binding

Parameters:
  • modifiers ([string]) – the modifier keys, valid ones are: mod1~5, shift, control, alt.

  • key (string)

  • intercept (bool) – whether the key press event will be passed on. If true, deai will intercept the key press, otherwise it will behave like a normal key press. If multiple bindings are created for the same key combination, then the key will be intercepted if any of the bindings have intercept enabled.

Add a new key binding

Create a new event source that emits a signal when a given key binding is pressed or released.