keycode

Maps web browser keycodes to their corresponding keyboard keys

https://github.com/RyanGlScott/keycode

LTS Haskell 22.43:0.2.3
Stackage Nightly 2024-12-03:0.2.3
Latest on Hackage:0.2.3

See all snapshots keycode appears in

BSD-3-Clause licensed by Ryan Scott
Maintained by Ryan Scott
This version can be pinned in stack with:keycode-0.2.3@sha256:cb3b088da5e210ec764ac621b4001ed9e2f1d4cee0db4305ff9ee3c137e32bcc,1856

Module documentation for 0.2.3

keycode

Hackage Hackage Dependencies Haskell Programming Language BSD3 License Build Status

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.3 [2024.10.22]

  • Drop support for pre-8.0 versions of GHC.

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