Refactor keybindings to be runtime defined.

This commit is contained in:
Isaac Freund
2020-04-07 21:48:56 +02:00
parent 15f97314a9
commit fa65333789
8 changed files with 116 additions and 68 deletions

View File

@ -112,7 +112,7 @@ pub const Keyboard = struct {
if (keyboard.handleBuiltinKeybind(translated_keysyms.?[i])) {
handled = true;
break;
} else if (keyboard.seat.server.handleKeybinding(translated_keysyms.?[i], modifiers)) {
} else if (keyboard.seat.handleKeybinding(translated_keysyms.?[i], modifiers)) {
handled = true;
break;
}
@ -123,7 +123,7 @@ pub const Keyboard = struct {
if (keyboard.handleBuiltinKeybind(raw_keysyms.?[i])) {
handled = true;
break;
} else if (keyboard.seat.server.handleKeybinding(raw_keysyms.?[i], modifiers)) {
} else if (keyboard.seat.handleKeybinding(raw_keysyms.?[i], modifiers)) {
handled = true;
break;
}