keycode

Maps web browser keycodes to their corresponding keyboard keys https://github.com/RyanGlScott/keycode

Version on this page:0.1.1
Stackage Nightly 2017-08-20:0.2.2
LTS Haskell 9.1:0.2.2
Stackage Nightly 2017-08-20:0.2.2
Latest on Hackage:0.2.2
BSD3 licensed by Ryan Scott
Maintained by Ryan Scott

Module documentation for 0.1.1

keycode

Hackage Hackage Dependencies [Haskell Programming Language][Haskell.org] [BSD3 License][tl;dr Legal: BSD3] Build

http://hackage.haskell.org/package/keycode "keycode package on Hackage" [Haskell.org]: http://www.haskell.org "The Haskell Programming Language" [tl;dr Legal: BSD3]: https://tldrlegal.com/license/bsd-3-clause-license-%28revised%29 "BSD 3-Clause License (Revised)"

Keyboard events in web browsers are often represented as keycodes, which (1) are difficult to remember, and (2) sometimes vary from browser to browser. This package allows one to look up a key press's keycode and get a plain English description of the key that was pressed, to reduce confusion.

Changes

0.2.2

  • Add isKeyCode function [ryantrinkle]

0.2.1

  • Bugfix: the keycodes for - and = were swapped on Gecko-based browsers (e.g., Firefox)

0.2

  • Add Data, Typeable, Generic, and Lift instances for Key when possible

0.1.1

  • Bugfix involving keycode 74 (should be J, was incorrectly giving K) [roboguy13]

0.1

  • Initial commit
Depends on:
Used by 2 packages:
comments powered byDisqus