diff options
author | 2016-03-19 13:42:32 +0100 | |
---|---|---|
committer | 2016-03-19 14:06:46 +0100 | |
commit | bb32cba795c7ab11e3b4844d21f0b2ae2f1fdc2d (patch) | |
tree | a9075a0c6834aed4eb5c18d62f817d4fcf1ab172 /include/config.h | |
parent | Allow legal non-x11 keycodes (diff) | |
download | sway-bb32cba795c7ab11e3b4844d21f0b2ae2f1fdc2d.tar.gz sway-bb32cba795c7ab11e3b4844d21f0b2ae2f1fdc2d.tar.zst sway-bb32cba795c7ab11e3b4844d21f0b2ae2f1fdc2d.zip |
Make key handling less strict
Sway has been very strict when it comes to key handling. Only on an
exact match would a bindsym be triggered.
This patch makes it less strict by for instance allowing the key combo
`$mod+1+2` to act as `$mod+2` if 2 was the last pressed key and `$mod+1`
if 1 was the last pressed key.
The new key handling uses the following algorithm:
1. List of bindings sorted by number of keys in binding (already the
default)
2. Find all bindings covered by the current keyboard state and list them
by same order as in 1.
3. Select the first binding from the list where the last pressed key is
part of the binding.
Addresses #452
Diffstat (limited to 'include/config.h')
0 files changed, 0 insertions, 0 deletions