Fixes dublicate key bindings for hotkeys

This commit is contained in:
perploug
2013-11-12 19:00:08 +01:00
parent ad9fa736f4
commit 9efe68724d

View File

@@ -25,6 +25,9 @@ angular.module('umbraco.services')
label = label.replace("ctrl","meta");
}
//always try to unbind first, so we dont have multiple actions on the same key
keyboardManagerService.unbind(label);
var fct, elt, code, k;
// Initialize opt object
opt = angular.extend({}, defaultOpt, opt);