mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 08:25:34 +00:00
io/key: add support for the Tab and Space keys
Fixes gio#62 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -419,6 +419,10 @@ func translateKey(k string) (string, bool) {
|
||||
n = key.NamePageUp
|
||||
case "PageDown":
|
||||
n = key.NamePageDown
|
||||
case "Tab":
|
||||
n = key.NameTab
|
||||
case " ":
|
||||
n = "Space"
|
||||
case "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12":
|
||||
n = k
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user