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:
Elias Naur
2019-11-09 11:17:36 +01:00
parent da42412e56
commit de7d6b28fa
6 changed files with 23 additions and 0 deletions
+4
View File
@@ -402,6 +402,10 @@ func x11SpecialKeySymToRune(s C.KeySym) (string, bool) {
n = "F11"
case C.XK_F12:
n = "F12"
case C.XK_Tab:
n = key.NameTab
case 0x20, C.XK_KP_Space:
n = "Space"
default:
return "", false
}