Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 alias are to enhance code readability and ergonomics.
Enter = KeyCode 13
I saved you from googling for the key code cowboy, you welcome.
Synopsis
- newtype KeyCode = KeyCode {}
- pattern Backspace :: KeyCode
- pattern Tab :: KeyCode
- pattern Enter :: KeyCode
- pattern Shift :: KeyCode
- pattern Ctrl :: KeyCode
- pattern Alt :: KeyCode
- pattern Pause :: KeyCode
- pattern Break :: KeyCode
- pattern CapsLock :: KeyCode
- pattern Escape :: KeyCode
- pattern PageUp :: KeyCode
- pattern PageDown :: KeyCode
- pattern End :: KeyCode
- pattern Home :: KeyCode
- pattern LeftArrow :: KeyCode
- pattern UpArrow :: KeyCode
- pattern RightArrow :: KeyCode
- pattern DownArrow :: KeyCode
- pattern Insert :: KeyCode
- pattern Delete :: KeyCode
- pattern N0 :: KeyCode
- pattern N1 :: KeyCode
- pattern N2 :: KeyCode
- pattern N3 :: KeyCode
- pattern N4 :: KeyCode
- pattern N5 :: KeyCode
- pattern N6 :: KeyCode
- pattern N7 :: KeyCode
- pattern N8 :: KeyCode
- pattern N9 :: KeyCode
- pattern A :: KeyCode
- pattern B :: KeyCode
- pattern C :: KeyCode
- pattern D :: KeyCode
- pattern E :: KeyCode
- pattern F :: KeyCode
- pattern G :: KeyCode
- pattern H :: KeyCode
- pattern I :: KeyCode
- pattern J :: KeyCode
- pattern K :: KeyCode
- pattern L :: KeyCode
- pattern M :: KeyCode
- pattern N :: KeyCode
- pattern O :: KeyCode
- pattern P :: KeyCode
- pattern Q :: KeyCode
- pattern R :: KeyCode
- pattern S :: KeyCode
- pattern T :: KeyCode
- pattern U :: KeyCode
- pattern V :: KeyCode
- pattern W :: KeyCode
- pattern X :: KeyCode
- pattern Y :: KeyCode
- pattern Z :: KeyCode
- pattern LeftSuper :: KeyCode
- pattern RightSuper :: KeyCode
- pattern Select :: KeyCode
- pattern Numpad0 :: KeyCode
- pattern Numpad1 :: KeyCode
- pattern Numpad2 :: KeyCode
- pattern Numpad3 :: KeyCode
- pattern Numpad4 :: KeyCode
- pattern Numpad5 :: KeyCode
- pattern Numpad6 :: KeyCode
- pattern Numpad7 :: KeyCode
- pattern Numpad8 :: KeyCode
- pattern Numpad9 :: KeyCode
- pattern Multiply :: KeyCode
- pattern Add :: KeyCode
- pattern Subtract :: KeyCode
- pattern DecimalPoint :: KeyCode
- pattern Divide :: KeyCode
- pattern F1 :: KeyCode
- pattern F2 :: KeyCode
- pattern F3 :: KeyCode
- pattern F4 :: KeyCode
- pattern F5 :: KeyCode
- pattern F6 :: KeyCode
- pattern F7 :: KeyCode
- pattern F8 :: KeyCode
- pattern F9 :: KeyCode
- pattern F10 :: KeyCode
- pattern F11 :: KeyCode
- pattern F12 :: KeyCode
- pattern NumLock :: KeyCode
- pattern ScrollLock :: KeyCode
- pattern SemiColon :: KeyCode
- pattern EqualSign :: KeyCode
- pattern Comma :: KeyCode
- pattern Dash :: KeyCode
- pattern Period :: KeyCode
- pattern ForwardSlash :: KeyCode
- pattern GraveAccent :: KeyCode
- pattern OpenBracket :: KeyCode
- pattern BackSlash :: KeyCode
- pattern CloseBraket :: KeyCode
- pattern SingleQuote :: KeyCode
Documentation
Wrapped raw key code from JavaScript event.keyCode
Instances
Enum KeyCode Source # | |
Eq KeyCode Source # | |
Integral KeyCode Source # | |
Defined in Shpadoinkle.Keyboard | |
Num KeyCode Source # | |
Ord KeyCode Source # | |
Real KeyCode Source # | |
Defined in Shpadoinkle.Keyboard toRational :: KeyCode -> Rational # | |
Show KeyCode Source # | |
pattern RightArrow :: KeyCode Source #
pattern RightSuper :: KeyCode Source #
pattern DecimalPoint :: KeyCode Source #
pattern ScrollLock :: KeyCode Source #
pattern ForwardSlash :: KeyCode Source #
pattern GraveAccent :: KeyCode Source #
pattern OpenBracket :: KeyCode Source #
pattern CloseBraket :: KeyCode Source #
pattern SingleQuote :: KeyCode Source #