Portability | portable (depends on GHC) |
---|---|
Stability | provisional |
Maintainer | gtk2hs-users@lists.sourceforge.net |
A KeyVal
is a numeric value identifying a keyboard key. The defined
values can be found at http://gitweb.freedesktop.org/?p=xorg/proto/x11proto.git;a=blob_plain;f=keysymdef.h.
The names of the keys are the names of the macros without the prefix.
Documentation
Key values are the codes which are sent whenever a key is pressed or released.
keyFromName :: String -> KeyValSource
Converts a key name to a key value.
:: KeyVal |
|
-> Maybe Char | returns the corresponding unicode character, or Nothing if there is no corresponding character. |
Convert from a Gdk key symbol to the corresponding Unicode character.
keyvalName :: KeyVal -> IO StringSource
keyvalFromName :: String -> IO KeyValSource