The hotkeys
plugin enables keyboard navigation and shortcuts. Depends on the jquery.hotkeys plugin
Expects an object:
each key is the keyboard shortcut (for possible values check the hotkeys plugin)
each values is a function executed in the instance's context, the return value is used as a return value for the event.
Simple example:
"del" : function () { this.remove(); }
Try pressing up
/down
/left
/right
/space
/f2
/del
.
Enable shortcuts on the instance (enabled by default).
Disable shortcuts on the instance.