Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
input/keyboard: fix bindsym --to-code failing on duplicates
If a keysymbol maps to many keycodes, we should choose the first seen keycode instead of last seen, because it is more likely that duplic ates are coming from nonstandard keys such as the 'Internet' keys. With these changes, I can bindsym my Print key. API maps both keycodes 107 and 218 to the Keysym 0xff61 = 65377. The only way to map between keysym to keycode or vice versa seems to be to loop through all keycodes exposed by and it starts from the 'lowest' or first keycode.
- Loading branch information