is-hotkey
is-hotkey copied to clipboard
Check whether a browser event matches a hotkey.
see https://github.com/ianstormtaylor/is-hotkey/blob/ce651bddc8eff239b2219f19466efb7961864664/src/index.js#L26 and https://github.com/ianstormtaylor/is-hotkey/blob/ce651bddc8eff239b2219f19466efb7961864664/src/index.js#L60 This would have saved me a couple of debugging minutes 😅 Overall, this library is still saving me a lot of time 👍🏽
fixed small typo. Thanks!
In Node.js ESM mode: ```js // test.mjs import isHotkey from "is-hotkey"; console.log(isHotkey); ``` ```sh $ node test.mjs ``` Yields: ``` { default: [Function: isHotkey], isHotkey: [Function: isHotkey], isCodeHotkey: [Function: isCodeHotkey],...
Bumps [qs](https://github.com/ljharb/qs) from 6.4.0 to 6.4.1. Changelog Sourced from qs's changelog. 6.4.1 [Fix] parse: ignore __proto__ keys (#428) [Fix] fix for an impossible situation: when the formatter is called with...
Added support of getHokeyName for switch cases. Code is same as [this](https://github.com/ianstormtaylor/is-hotkey/pull/47) PR along with some additional code changes and test cases to support it.