Add return key
This commit is contained in:
parent
957e116305
commit
5da7b376c9
10 changed files with 179 additions and 16 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue