mirror of
https://github.com/labwc/labwc.git
synced 2026-03-16 05:33:50 -04:00
keybind: Fix shift modifiers
Need to lower the syms for these to match! Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
parent
174e82a608
commit
95ce9e0264
2 changed files with 3 additions and 3 deletions
|
|
@ -36,8 +36,8 @@ keybind_create(const char *keybind)
|
||||||
if (modifier != 0) {
|
if (modifier != 0) {
|
||||||
k->modifiers |= modifier;
|
k->modifiers |= modifier;
|
||||||
} else {
|
} else {
|
||||||
xkb_keysym_t sym = xkb_keysym_from_name(
|
xkb_keysym_t sym = xkb_keysym_to_lower(
|
||||||
symname, XKB_KEYSYM_CASE_INSENSITIVE);
|
xkb_keysym_from_name(symname, XKB_KEYSYM_CASE_INSENSITIVE));
|
||||||
if (sym == XKB_KEY_NoSymbol) {
|
if (sym == XKB_KEY_NoSymbol) {
|
||||||
wlr_log(WLR_ERROR, "unknown keybind (%s)", symname);
|
wlr_log(WLR_ERROR, "unknown keybind (%s)", symname);
|
||||||
free(k);
|
free(k);
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ handle_keybinding(struct server *server, uint32_t modifiers, xkb_keysym_t sym)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
for (size_t i = 0; i < keybind->keysyms_len; i++) {
|
for (size_t i = 0; i < keybind->keysyms_len; i++) {
|
||||||
if (sym == keybind->keysyms[i]) {
|
if (xkb_keysym_to_lower(sym) == keybind->keysyms[i]) {
|
||||||
action(server, keybind->action,
|
action(server, keybind->action,
|
||||||
keybind->command);
|
keybind->command);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue