mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
binding: match single-key bindings if no multi-key binding matched
This makes bindings more snappy when the user is typing faster than his keycaps are releasing. Signed-off-by: Franklin "Snaipe" Mathieu <me@snai.pe>
This commit is contained in:
parent
1e8e7e16e7
commit
f8e83ee20a
2 changed files with 18 additions and 7 deletions
|
|
@ -24,6 +24,7 @@ struct sway_shortcut_state {
|
|||
uint32_t last_keycode;
|
||||
uint32_t last_raw_modifiers;
|
||||
size_t npressed;
|
||||
uint32_t current_key;
|
||||
};
|
||||
|
||||
struct sway_keyboard {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue