BUGFIX: do not override default browser keyboard shortcuts behavior
This commit is contained in:
parent
6d3c3a02cb
commit
a710773bb4
|
@ -98,11 +98,7 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
|
||||||
|
|
||||||
_bindToClick: function(selector, binding) {
|
_bindToClick: function(selector, binding) {
|
||||||
binding = binding.split(',');
|
binding = binding.split(',');
|
||||||
this.keyTrapper.bind(binding, function(e) {
|
this.keyTrapper.bind(binding, function() {
|
||||||
if (!_.isUndefined(e) && _.isFunction(e.preventDefault)) {
|
|
||||||
e.preventDefault();
|
|
||||||
}
|
|
||||||
|
|
||||||
$(selector).click();
|
$(selector).click();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue