diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-03-19 13:42:32 +0100 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-03-19 14:06:46 +0100 |
commit | bb32cba795c7ab11e3b4844d21f0b2ae2f1fdc2d (patch) | |
tree | a9075a0c6834aed4eb5c18d62f817d4fcf1ab172 /common/CMakeLists.txt | |
parent | 8c7bdfc0047004245000b060f8187af3f2898feb (diff) |
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 'common/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions