Shpadoinkle-html-0.3.0.2: A typed, template generated Html DSL, and helpers.

Safe HaskellNone
LanguageHaskell2010

Shpadoinkle.Keyboard

Description

Keyboard key code pattern synonyms to make your keyEvents easier to use. When you use a listener from Events that reads from the Keyboard, you will get the key in question as a KeyCode which just wraps the native Int key code from JavaScript.

The named aliases are to enhance code readability and ergonomics.

  Enter = KeyCode 13

I saved you from Googling for the key code cowboy, you're welcome.

Synopsis

Documentation

newtype KeyCode Source #

Wrapped raw key code from JavaScript event.keyCode

Constructors

KeyCode 

Fields

Instances
Enum KeyCode Source # 
Instance details

Defined in Shpadoinkle.Keyboard

Eq KeyCode Source # 
Instance details

Defined in Shpadoinkle.Keyboard

Integral KeyCode Source # 
Instance details

Defined in Shpadoinkle.Keyboard

Num KeyCode Source # 
Instance details

Defined in Shpadoinkle.Keyboard

Ord KeyCode Source # 
Instance details

Defined in Shpadoinkle.Keyboard

Real KeyCode Source # 
Instance details

Defined in Shpadoinkle.Keyboard

Show KeyCode Source # 
Instance details

Defined in Shpadoinkle.Keyboard

pattern Tab :: KeyCode Source #

pattern Enter :: KeyCode Source #

pattern Shift :: KeyCode Source #

pattern Ctrl :: KeyCode Source #

pattern Alt :: KeyCode Source #

pattern Pause :: KeyCode Source #

pattern Break :: KeyCode Source #

pattern Escape :: KeyCode Source #

pattern PageUp :: KeyCode Source #

pattern End :: KeyCode Source #

pattern Home :: KeyCode Source #

pattern UpArrow :: KeyCode Source #

pattern Insert :: KeyCode Source #

pattern Delete :: KeyCode Source #

pattern N0 :: KeyCode Source #

pattern N1 :: KeyCode Source #

pattern N2 :: KeyCode Source #

pattern N3 :: KeyCode Source #

pattern N4 :: KeyCode Source #

pattern N5 :: KeyCode Source #

pattern N6 :: KeyCode Source #

pattern N7 :: KeyCode Source #

pattern N8 :: KeyCode Source #

pattern N9 :: KeyCode Source #

pattern A :: KeyCode Source #

pattern B :: KeyCode Source #

pattern C :: KeyCode Source #

pattern D :: KeyCode Source #

pattern E :: KeyCode Source #

pattern F :: KeyCode Source #

pattern G :: KeyCode Source #

pattern H :: KeyCode Source #

pattern I :: KeyCode Source #

pattern J :: KeyCode Source #

pattern K :: KeyCode Source #

pattern L :: KeyCode Source #

pattern M :: KeyCode Source #

pattern N :: KeyCode Source #

pattern O :: KeyCode Source #

pattern P :: KeyCode Source #

pattern Q :: KeyCode Source #

pattern R :: KeyCode Source #

pattern S :: KeyCode Source #

pattern T :: KeyCode Source #

pattern U :: KeyCode Source #

pattern V :: KeyCode Source #

pattern W :: KeyCode Source #

pattern X :: KeyCode Source #

pattern Y :: KeyCode Source #

pattern Z :: KeyCode Source #

pattern Select :: KeyCode Source #

pattern Numpad0 :: KeyCode Source #

pattern Numpad1 :: KeyCode Source #

pattern Numpad2 :: KeyCode Source #

pattern Numpad3 :: KeyCode Source #

pattern Numpad4 :: KeyCode Source #

pattern Numpad5 :: KeyCode Source #

pattern Numpad6 :: KeyCode Source #

pattern Numpad7 :: KeyCode Source #

pattern Numpad8 :: KeyCode Source #

pattern Numpad9 :: KeyCode Source #

pattern Add :: KeyCode Source #

pattern Divide :: KeyCode Source #

pattern F1 :: KeyCode Source #

pattern F2 :: KeyCode Source #

pattern F3 :: KeyCode Source #

pattern F4 :: KeyCode Source #

pattern F5 :: KeyCode Source #

pattern F6 :: KeyCode Source #

pattern F7 :: KeyCode Source #

pattern F8 :: KeyCode Source #

pattern F9 :: KeyCode Source #

pattern F10 :: KeyCode Source #

pattern F11 :: KeyCode Source #

pattern F12 :: KeyCode Source #

pattern NumLock :: KeyCode Source #

pattern Comma :: KeyCode Source #

pattern Dash :: KeyCode Source #

pattern Period :: KeyCode Source #