mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
68063633f2675a54ec4601d5236fc9ea8d15b068
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>
Gio
Immediate mode GUI programs in Go for Android, iOS, macOS, Linux, FreeBSD, Windows and WebAssembly. See gioui.org for details and documentation.
Issues
File bugs and TODOs through the issue tracker or send an email to ~eliasnaur/gio@todo.sr.ht. For general discussion, use the mailing list: ~eliasnaur/gio@lists.sr.ht.
Contributing
Post discussion and patches to the mailing list. No Sourcehut account is required and you can post without being subscribed.
See the contribution guide for more details.
License
Description
Languages
Go
89.6%
C
7%
Java
1.7%
Objective-C
1.6%