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
|
|
@ -267,6 +267,8 @@ fill_keybind(char *nodename, char *content)
|
|||
} else if (!current_keybind) {
|
||||
wlr_log(WLR_ERROR, "expect <keybind key=\"\"> element first. "
|
||||
"nodename: '%s' content: '%s'", nodename, content);
|
||||
} else if (!strcasecmp(nodename, "layoutDependent")) {
|
||||
set_bool(content, ¤t_keybind->use_syms_only);
|
||||
} else if (!strcmp(nodename, "name.action")) {
|
||||
current_keybind_action = action_create(content);
|
||||
if (current_keybind_action) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue