diff options
author | frsfnrrg <frsfnrrg@users.noreply.github.com> | 2018-06-12 11:07:11 -0400 |
---|---|---|
committer | frsfnrrg <frsfnrrg@users.noreply.github.com> | 2018-06-12 20:26:57 -0400 |
commit | ca061ba8bf94e1d09e1d912871841212778044ed (patch) | |
tree | 855a5886f90dd555ae1057049d8d802d0c2b5cfb /sway/commands/bar/modifier.c | |
parent | b23cd827cf934ef7f631b7c448e7afa4147c1936 (diff) |
Fix keyboard shortcut handling inconsistencies
* Ensure that modifier keys are identified even when the next key does
not produce a keysym. This requires that modifier change tracking
be done for each sway_shortcut_state.
* Permit regular and --release shortcuts on the same key combination.
Distinct bindings are identified for press and release cases; note
that the release binding needs to be identified for both key press
and key release events.
* Maintain ascending sort order for the shortcut state list, and keep
track of the number of pressed key ids, for simpler (and hence
faster) searching of the list of key bindings.
* Move binding duplicate detection into get_active_binding to avoid
duplicating error messages.
Diffstat (limited to 'sway/commands/bar/modifier.c')
0 files changed, 0 insertions, 0 deletions