Safe Haskell | None |
---|
Frontend-independent keyboard input operations.
Documentation
data Key
Frontend-independent datatype to represent keys.
handleDir :: X -> KM -> (Vector -> a) -> a -> a
Configurable event handler for the direction keys. Used for directed commands such as close door.
dirAllMoveKey :: [Key]
moveBinding :: (VectorXY -> a) -> (VectorXY -> a) -> [(KM, a)]
Binding of both sets of movement keys.
keyTranslate :: String -> Key
Translate key from a GTK string description to our internal key type. To be used, in particular, for the command bindings and macros in the config file.
data Modifier
Our own encoding of modifiers. Incomplete.