Maps web browser keycodes to their corresponding keyboard keys

Version on this page:0.2.2
LTS Haskell 13.25:0.2.2
Stackage Nightly 2019-06-12:0.2.2
Latest on Hackage:0.2.2

See all snapshots keycode appears in

BSD-3-Clause licensed by Ryan Scott
Maintained by Ryan Scott

Module documentation for 0.2.2

There are no documented modules for this package.


Hackage Hackage Dependencies Haskell Programming Language BSD3 License Build

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.



  • Add isKeyCode function [ryantrinkle]


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


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


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


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