mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
keybinds: add optional layoutDependent argument
This allows to define keybinds as layout dependent. E.g. keybinds only trigger if the configured key exists in the currently active keyboard layout. The keybind will also only trigger on the physical key that is mapped to the configured key in the active layout. By default the new argument is false which means all keybinds by default are layout agnostic. This optional argument can be used to restore the earlier default behavior of having keys layout dependent.
This commit is contained in:
parent
6b80751010
commit
c1c624daf0
4 changed files with 16 additions and 2 deletions
|
|
@ -14,6 +14,7 @@ struct keybind {
|
|||
uint32_t modifiers;
|
||||
xkb_keysym_t *keysyms;
|
||||
size_t keysyms_len;
|
||||
bool use_syms_only;
|
||||
xkb_keycode_t keycodes[MAX_KEYCODES];
|
||||
size_t keycodes_len;
|
||||
int keycodes_layout;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue