mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-12-23 15:42:12 +03:00
keybinds: actually suppress internal keybinds instead of passing them along (#8538)
This commit is contained in:
parent
943b3d467b
commit
b100344595
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user