BUGFIX: do not override default browser keyboard shortcuts behavior

This commit is contained in:
Régis Hanol 2014-02-06 11:07:33 +01:00
parent 6d3c3a02cb
commit a710773bb4

View file

@ -98,11 +98,7 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
_bindToClick: function(selector, binding) {
binding = binding.split(',');
this.keyTrapper.bind(binding, function(e) {
if (!_.isUndefined(e) && _.isFunction(e.preventDefault)) {
e.preventDefault();
}
this.keyTrapper.bind(binding, function() {
$(selector).click();
});
},