Skip to content
A keyboard input capturing utility in which any key can be a modifier key.
Branch: master
Clone or download
Pull request Compare This branch is 108 commits behind dmauro:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
README.md
bower.json
coffee-compiler.sh
compiler.jar
keypress.coffee
keypress.js

README.md

Keypress

Version 1.0.8

Keypress is a robust keyboard input capturing Javascript utility focused on input for games. For details and documentation, please visit http://dmauro.github.io/Keypress/

Copyright 2012 David Mauro released under the Apache License, version 2.0

What's new

1.0.8

  • Ensure that on_release is called for all combos, not just counting combos.
  • Fix bug that was causing is_ordered to be ignored.
  • Fixed an edge case for a counting combo's count not being reset.
  • Improve how key events are bound

1.0.7

  • Fixed combo matching to prevent performance issues as more keys are pressed.

1.0.6

  • Fixed a bug with exclusive combos not properly excluding each other in some cases.
  • Feature added to allow for combos that do not fire if unrelated keys are also pressed ("is_solitary" boolean).

TODO

  • Put negative edge in sequences.
  • See if we can do away with keyup_fired and count properties.
You can’t perform that action at this time.