reflex-dom-contrib-0.3: A playground for experimenting with infrastructure and common code for reflex applications

Safe HaskellNone
LanguageHaskell2010

Reflex.Dom.Contrib.KeyEvent

Description

API for dealing with keyboard events.

Synopsis

Documentation

data KeyEvent Source

Data structure with the details of key events.

Constructors

KeyEvent 

Fields

keKeyCode :: Int
 
keCtrl :: Bool
 
keShift :: Bool
 

key :: Char -> KeyEvent Source

Convenience constructor for KeyEvent with no modifiers pressed.

shift :: KeyEvent -> KeyEvent Source

Set the shift modifier of a KeyEvent.

ctrlKey :: Char -> KeyEvent Source

Set the ctrl modifier of a KeyEvent.