yi-core-0.19.2: Yi editor core library
Safe HaskellSafe-Inferred
LanguageHaskell2010

Yi.Event

Contents

Synopsis

Documentation

data Event Source #

Constructors

Event Key [Modifier] 

Instances

Instances details
Eq Event Source # 
Instance details

Defined in Yi.Event

Methods

(==) :: Event -> Event -> Bool #

(/=) :: Event -> Event -> Bool #

Ord Event Source # 
Instance details

Defined in Yi.Event

Methods

compare :: Event -> Event -> Ordering #

(<) :: Event -> Event -> Bool #

(<=) :: Event -> Event -> Bool #

(>) :: Event -> Event -> Bool #

(>=) :: Event -> Event -> Bool #

max :: Event -> Event -> Event #

min :: Event -> Event -> Event #

Show Event Source # 
Instance details

Defined in Yi.Event

Methods

showsPrec :: Int -> Event -> ShowS #

show :: Event -> String #

showList :: [Event] -> ShowS #

data Key Source #

Instances

Instances details
Eq Key Source # 
Instance details

Defined in Yi.Event

Methods

(==) :: Key -> Key -> Bool #

(/=) :: Key -> Key -> Bool #

Ord Key Source # 
Instance details

Defined in Yi.Event

Methods

compare :: Key -> Key -> Ordering #

(<) :: Key -> Key -> Bool #

(<=) :: Key -> Key -> Bool #

(>) :: Key -> Key -> Bool #

(>=) :: Key -> Key -> Bool #

max :: Key -> Key -> Key #

min :: Key -> Key -> Key #

Show Key Source # 
Instance details

Defined in Yi.Event

Methods

showsPrec :: Int -> Key -> ShowS #

show :: Key -> String #

showList :: [Key] -> ShowS #

data Modifier Source #

Constructors

MShift 
MCtrl 
MMeta 
MSuper 
MHyper 

Instances

Instances details
Eq Modifier Source # 
Instance details

Defined in Yi.Event

Ord Modifier Source # 
Instance details

Defined in Yi.Event

Show Modifier Source # 
Instance details

Defined in Yi.Event

Key codes

eventToChar :: Event -> Char Source #

Map an Event to a Char. This is used in the emacs keymap for Ctrl-Q and vim keymap insertSpecialChar