mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-02 07:57:29 +00:00
68063633f2
When the control key is pressed, clear event.state bits before calling Xutf8LookupString in order to get the unmodified key name. This allows proper handling of all keys in combination with ModCommand. `key.Event.Name` is however layout dependent. Client code should be careful about this when picking key shortcuts like CTRL-'+': on a QWERTY keyboard, only CTRL-'=' and CTRL-SHIFT-'=' are generated when pressing the '=' key of the top row. The keypad '+' key generates events with `Name = '+'` as expected. Fixes gio#57 Signed-off-by: Denis Bernard <db047h@gmail.com>