mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 05:50:14 +08:00
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) {
|
||||
binding = binding.split(',');
|
||||
this.keyTrapper.bind(binding, function(e) {
|
||||
if (!_.isUndefined(e) && _.isFunction(e.preventDefault)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
|
||||
this.keyTrapper.bind(binding, function() {
|
||||
$(selector).click();
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user