mousetrap VS is-hotkey

Compare mousetrap vs is-hotkey and see what are their differences.

mousetrap

Simple library for handling keyboard shortcuts in Javascript (by ccampbell)

is-hotkey

Check whether a browser event matches a hotkey. (by ianstormtaylor)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
mousetrap is-hotkey
6 1
11,552 348
- -
0.0 0.0
about 1 year ago about 1 year ago
JavaScript JavaScript
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

mousetrap

Posts with mentions or reviews of mousetrap. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-02-23.

is-hotkey

Posts with mentions or reviews of is-hotkey. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-06-13.
  • Hotkey Libraries: What's Your Solution?
    4 projects | /r/reactjs | 13 Jun 2021
    I faced the same issue. I tried out hotkeys and react-hotkeys-hook, but they didn't fit my needs. I ended up creating a component and placed it high up in the component tree, say HotkeyEvents (to avoid events being attached more than once), that handles all the shortcuts. I used the is-hotkey as a helper for detecting them.

What are some alternatives?

When comparing mousetrap and is-hotkey you can also consider the following projects:

keymaster - A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.

hotkeys-js - ➷ A robust Javascript library for capturing keyboard input. It has no dependencies.

KeyboardJS - A JavaScript library for binding keyboard combos without the pain of key codes and key combo conflicts.

kNow - Plug-and-play, faster-than-native promise/callback event emitter

Keypress - A keyboard input capturing utility in which any key can be a modifier key.

jquery.hotkeys - jQuery Hotkeys lets you watch for keyboard events anywhere in your code supporting almost any key combination.

react-hotkeys-hook - React hook for using keyboard shortcuts in components.

jwerty

sysend.js - Web application synchronization between different tabs

Bootstrap - The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.

Cursor-Control - Cursor Control provides access to the Home, End, Page Up and Page Down keys to owners of laptops with keyboards that do not have those keys present.