Tiny keypress module for Engine.
npm install engine-keypressshortcuts array contains objects in the following format: - k (Number): The key code.
- c (String): A special key that should be pressed as well.
- f (String): A global or module function name (e.g. emit).
- args (Array): The function arguments.
``json`
{
"shortcuts": [
{
"k": 66,
"c": "ctrl",
"f": "someMethod",
"args": [
"arg1",
"arg2"
]
}
]
}
The module does not listen to any events.
[license]: /LICENSE
[contributing]: /CONTRIBUTING.md
[docs]: /DOCUMENTATION.md