ComboKeys Context
This is a light wrapper about ComboKeys that provides context aware key bindings.
Version 1.x Info
For the current stable version, please see the v1.x branch. The master branch is for the work in the upcoming version 2 which will have plugin support as well as a more powerful context system.
Compatibility
Tested against the latest version of Google Chrome, latest Firefox, and Internet Explorer 9, 10 and 11. Should work with all
browsers that works with ComboKeys as long as Object.keys
is polyfilled where needed.
Install
npm install combokeys-context
Documentation
Full API Docs
Basic Usage
var ComboKeys = ;var ComboKeysContext = ; var comboKeys = document;var comboKeysContext = comboKeys; // register a plugincomboKeysContext
ComboKeys Compatibility
This library modifies ComboKeys.stopCallback
to add support for
plugins. By default this library will not stop a callback in input
tags or respond to the combokeys
class on an element. To add this
support you can use the TagCallbackFilter
, ElementAttributeFilter
and the ClassNameFilter
plugins.
var comboKeysContext = ;var options = stopPropagation: ComboKeysContextSTOP_CALLBACK;comboKeysContext;comboKeysContext;comboKeysContext;
License
Combokeys Context is released under the ISC license. See LICENSE.