@nk11/keyboard-interactions

1.0.8 • Public • Published

keyboard-interactions

Wrapper around keyboard inputs
Build Status [Project License][license-url]
Grade Badge Coverage Badge
Dependencies Dev Dependencies

Project Overview

This library contains a simple wrapper for different input methods. By introducing an 'action' to bind multiple input combos plus their handlers with it a better customisation by the user may be achieved.

For example:

function hello()
{    console.log("hello world") }

//bind the action to ctrl+space as default trigger
Hotkeys("hello-action", "ctrl+space", hello)

For the time being this is not meant to be a stand alone library But rather as a backend for a compatible GUI. For the reference implementation dowload npm "@nk/core-components" and check out the "nk-hotkey-dialog" example

Features

  • Better Usability by customizing Keyboard Inputs

credits, references, acknowledgements

technical goals

  • function as a no-gui backend for UI components that implement a keymap dialog

possible extensions

[license-url]:

Build Status

Dependents (0)

Package Sidebar

Install

npm i @nk11/keyboard-interactions

Weekly Downloads

1

Version

1.0.8

License

MIT

Unpacked Size

35.9 kB

Total Files

13

Last publish

Collaborators

  • nk11