Add return key

This commit is contained in:
Unrud 2022-01-27 07:17:23 +01:00
parent 957e116305
commit 5da7b376c9
10 changed files with 179 additions and 16 deletions

View file

@ -30,6 +30,7 @@ type Keysym int32
const (
// X11/keysymdef.h
xkBackSpace Keysym = 0xff08
xkReturn Keysym = 0xff0D
xkDelete Keysym = 0xffff
xkHome Keysym = 0xff50
xkLeft Keysym = 0xff51
@ -68,6 +69,9 @@ func KeyToKeysym(key Key) (Keysym, error) {
if key == KeyBackSpace {
return xkBackSpace, nil
}
if key == KeyReturn {
return xkReturn, nil
}
if key == KeyDelete {
return xkDelete, nil
}