How to use the hotkeys-js.isPressed function in hotkeys-js

To help you get started, we’ve selected a few hotkeys-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MageStudio / Mage / src / base / input / Keyboard.js View on Github external
isPressed(key) {
        return hotkeys.isPressed(key);
    }
}

hotkeys-js

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

MIT
Latest version published 15 days ago

Package Health Score

83 / 100
Full package analysis