Copyright | (c) Eric Mertens 2016 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data Action
- = ActBackspace
- | ActDelete
- | ActLeft
- | ActRight
- | ActHome
- | ActEnd
- | ActOlderLine
- | ActNewerLine
- | ActScrollUp
- | ActScrollDown
- | ActBackWord
- | ActForwardWord
- | ActYank
- | ActKillHome
- | ActKillEnd
- | ActKillWordBack
- | ActKillWordForward
- | ActToggle
- | ActBold
- | ActColor
- | ActItalic
- | ActUnderline
- | ActReverseVideo
- | ActClearFormat
- | ActInsertEnter
- | ActDigraph
- | ActRetreatFocus
- | ActAdvanceFocus
- | ActAdvanceNetwork
- | ActJumpToActivity
- | ActJumpPrevious
- | ActJump Int
- | ActTabComplete
- | ActTabCompleteBack
- | ActEnter
- | ActReset
- | ActRefresh
- | ActCommand Text
- | ActInsert Char
- | ActIgnored
- data KeyMap
- keyToAction :: KeyMap -> [Modifier] -> Text -> [Modifier] -> Key -> Action
- initialKeyMap :: KeyMap
- addKeyBinding :: [Modifier] -> Key -> Action -> KeyMap -> KeyMap
- removeKeyBinding :: [Modifier] -> Key -> KeyMap -> KeyMap
- keyMapEntries :: KeyMap -> [([Modifier], Key, Action)]
- parseKey :: String -> Maybe ([Modifier], Key)
- prettyModifierKey :: [Modifier] -> Key -> String
- actionName :: Action -> Text
Documentation
Actions that can be invoked using the keyboard.
Lookup table for keyboard events to actions. Use with keyToAction.
:: KeyMap | actions |
-> [Modifier] | jump modifier |
-> Text | window names |
-> [Modifier] | actual modifier |
-> Key | key |
-> Action | action |
Lookup the action to perform in response to a particular key event.
initialKeyMap :: KeyMap Source #
Default key bindings
Bind a keypress event to a new action.
Unbind the action associated with a key.
Keys as text
actionName :: Action -> Text Source #
Render action as human-readable text.