Keymaster is a simple micro-library for defining and dispatching keyboard shortcuts in web applications. It has no dependencies. It’s a work in progress (e.g. beta), so spare me your nerdrage and instead contribute! Patches are welcome, but they are not guaranteed to make it in. Include keymaster.js in your web app*, by loading it as usual. Keymaster has no dependencies and can be used completely standalone. It should not interfere with any JavaScript libraries or frameworks. *Preferably use a minified version that fits your workflow. You can run make to have UglifyJS (if you have it installed) create a keymaster.min.js file for you. At any point in time (even in code other than key shortcut handlers), you can query the key object for the state of any keys. This allows easy implementation of things like shift+click handlers. For example, key.shift is true if the shift key is currently pressed.

Features

  • noConflict mode
  • Unbinding shortcuts
  • Filter key presses
  • Modifier key queries
  • It has no dependencies
  • Keymaster supports switching between scopes

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow keymaster.js

keymaster.js Web Site

Other Useful Business Software
ACI Learning: Internal Audit, Cybersecurity, and IT Training Icon
ACI Learning: Internal Audit, Cybersecurity, and IT Training

Proven skill building for every aspect of your support or IT team.

Traditional training doesn't equip employees with the practical skills they need to drive business success. ACI Learning provides hands-on IT and cybersecurity training designed to build real-world, on-the-job skills. Our outcome-based programs empower employees with certification prep, industry-recognized credentials, and flexible learning options. With expert-led video training, labs, and scalable solutions, we help businesses, individuals, governments, and academic institutions develop a skilled workforce, align with business goals, and stay ahead in a rapidly evolving digital world.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of keymaster.js!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Libraries

Registered

2021-08-26