diff options
| author | nyx <nnyyxxxx@protonmail.com> | 2025-04-16 20:19:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-17 02:19:10 +0200 |
| commit | 225e13c3cc83308175f0a9aa18cfa31324155034 (patch) | |
| tree | be5d112573273e8d105f3a139d20f937c56df05d /src/managers/KeybindManager.cpp | |
| parent | 3fa6320a391ed60779702e058f67649beb787962 (diff) | |
InputManager: add config option to disable keybinds per device (#10064)
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 4ef7d229..a1ad846a 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -432,7 +432,10 @@ bool CKeybindManager::onKeyEvent(std::any event, SP<IKeyboard> pKeyboard) { return true; } - auto e = std::any_cast<IKeyboard::SKeyEvent>(event); + auto e = std::any_cast<IKeyboard::SKeyEvent>(event); + + if (!pKeyboard->allowBinds) + return true; const auto KEYCODE = e.keycode + 8; // Because to xkbcommon it's +8 from libinput |
