mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
BUGFIX: do not override default browser keyboard shortcuts behavior
This commit is contained in:
parent
6d3c3a02cb
commit
a710773bb4
1 changed files with 1 additions and 5 deletions
|
@ -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 a new issue