kmonad-0.4.2: Advanced keyboard remapping utility
Safe HaskellSafe-Inferred
LanguageHaskell2010

KMonad.Keyboard.Ops

Contents

Synopsis

Documentation

mkKeyEvent :: Switch -> Keycode -> KeyEvent Source #

Create a new KeyEvent from a Switch and a Keycode

mkPress :: Keycode -> KeyEvent Source #

Create a KeyEvent that represents pressing a key

mkRelease :: Keycode -> KeyEvent Source #

Create a KeyEvent that represents releaseing a key

Predicates

isPress :: KeyPred Source #

Return whether the provided KeyEvent is a Press

isRelease :: KeyPred Source #

Return whether the provided KeyEvent is a Release

isKeycode :: Keycode -> KeyPred Source #

Return whether the provided KeyEvent matches a particular Keycode

isPressOf :: Keycode -> KeyPred Source #

Return whether the provided KeyEvent matches the press of the Keycode

isReleaseOf :: Keycode -> KeyPred Source #

Returth whether the provided KeyEvent matches the release of the Keycode