mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: If a user uses the keyboard to navigate, don't bubble up the event.
This commit is contained in:
parent
da7fefa263
commit
a2c97b9e6b
1 changed files with 3 additions and 2 deletions
|
@ -189,7 +189,8 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
|
|||
|
||||
_bindToClick: function(selector, binding) {
|
||||
binding = binding.split(',');
|
||||
this.keyTrapper.bind(binding, function() {
|
||||
this.keyTrapper.bind(binding, function(e) {
|
||||
e.preventDefault();
|
||||
$(selector).click();
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue