We may need to use the underlying Mousetrap library directly, however
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
// adds a keyboard shortcut
// http://chieffancypants.github.io/angular-hotkeys/
$scope.addHotkey = function(key, path, desc) {
- hotkeys.add(key, desc, function(e) { e.preventDefault(); navTo(path); });
+ hotkeys.add({
+ combo: key,
+ allowIn: ['INPUT','SELECT','TEXTAREA'],
+ description: desc,
+ callback: function(e) { e.preventDefault(); navTo(path); }
+ });
};
$scope.retrieveLastRecord = function() {