| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Vgrep.Key
Description
Basic definitions for Keys, Modifiers, and Chords of Keys and
Modifiers. We can read key Chords 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 Mods is simpler to check for
equality than a list of Modifiers.
Documentation
A chord of keys and modifiers pressed simultaneously.