mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-11 13:50:48 -05:00
Fix: #485 Remove used modifiers before figuring out keybinding.
This commit is contained in:
parent
05e194e37d
commit
25c210b851
1 changed files with 3 additions and 1 deletions
|
@ -1189,8 +1189,10 @@ static void rofi_view_handle_keypress ( RofiViewState *state, xkb_stuff *xkb, xc
|
|||
len = xkb_state_key_get_utf8 ( xkb->state, xkpe->detail, pad, sizeof ( pad ) );
|
||||
}
|
||||
|
||||
unsigned int modstate = x11_canonalize_mask ( xkpe->state );
|
||||
xkb_mod_mask_t mod = xkb_state_serialize_mods ( xkb->state, XKB_STATE_MODS_EFFECTIVE );
|
||||
xkb_mod_mask_t rrstate = xkb_state_mod_mask_remove_consumed ( xkb->state, key,mod );
|
||||
|
||||
unsigned int modstate = x11_canonalize_mask ( rrstate );
|
||||
if ( key != XKB_KEY_NoSymbol ) {
|
||||
KeyBindingAction action;
|
||||
action = abe_find_action ( modstate, key );
|
||||
|
|
Loading…
Reference in a new issue