Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Basic definitions for Key
s, Mod
ifiers, and Chord
s of Key
s and
Mod
ifiers. We can read key Chord
s from Graphics.Vty EvKey
events
using fromVty
.
This module is intended for qualified import:
import qualified Vgrep.Key as Key
We define our own Key
and Mod
types rather than using Graphics.Vty's
Key
and Modifier
, because it simplifies parsing (of keys like
Space
and Tab
, which are represented as ' '
and '\t'
in
Graphics.Vty), and because a Set
of Mod
s is simpler to check for
equality than a list of Modifier
s.
Documentation
A chord of keys and modifiers pressed simultaneously.