summaryrefslogtreecommitdiff
path: root/src/managers/input
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-08 09:27:17 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-08 09:27:17 +0200
commitcd0a01f4de6e1489caa35bece331c81dbaab2587 (patch)
tree17905972a6749532b6688b27590063f92d9911ec /src/managers/input
parent75c2a378e3c9368feb57a31710de26decc3da3bc (diff)
Added binding by keycodes
Diffstat (limited to 'src/managers/input')
-rw-r--r--src/managers/input/InputManager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index d5febe66..bdcddbe1 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -594,7 +594,9 @@ void CInputManager::onKeyboardKey(wlr_keyboard_key_event* e, SKeyboard* pKeyboar
bool found = false;
if (e->state == WL_KEYBOARD_KEY_STATE_PRESSED) {
for (int i = 0; i < syms; ++i)
- found = g_pKeybindManager->handleKeybinds(MODS, keysyms[i]) || found;
+ found = g_pKeybindManager->handleKeybinds(MODS, keysyms[i], 0) || found;
+
+ found = g_pKeybindManager->handleKeybinds(MODS, 0, KEYCODE) || found;
} else if (e->state == WL_KEYBOARD_KEY_STATE_RELEASED) {
// hee hee
}