Handbook
Glossary
key-sym ( keyval -- string/f action? )
Vocabulary
ui
.
backend
.
gtk2
Inputs
keyval
a
GdkEventKey
Outputs
string/f
a
string
or
f
action?
a
boolean
Word description
Gets the key symbol and action indicator from a
GdkEventKey
struct. If 'action?' is
t
, then the key is one of the special keys in
codes
.
Definition
USING:
gdk2.ffi
kernel
math
strings
ui.backend.x11.keys
;
IN:
ui.backend.gtk2
:
key-sym
( keyval -- string/f action? )
code>sym
[
dup
integer?
[
gdk_keyval_to_unicode
1string
]
when
]
dip
;