keybinds: actually suppress internal keybinds instead of passing them along (#8538)

This commit is contained in:
may 2024-11-22 03:31:42 +01:00 committed by GitHub
parent 943b3d467b
commit b100344595
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -423,8 +423,10 @@ bool CKeybindManager::onKeyEvent(std::any event, SP<IKeyboard> pKeyboard) {
const xkb_keysym_t keysym = xkb_state_key_get_one_sym(pKeyboard->resolveBindsBySym ? pKeyboard->xkbSymState : m_pXKBTranslationState, KEYCODE);
const xkb_keysym_t internalKeysym = xkb_state_key_get_one_sym(pKeyboard->xkbState, KEYCODE);
// handleInternalKeybinds returns true when the key should be suppressed,
// while this function returns true when the key event should be sent
if (handleInternalKeybinds(internalKeysym))
return true;
return false;
const auto MODS = g_pInputManager->accumulateModsFromAllKBs();