mirror of
https://github.com/discourse/discourse.git
synced 2025-03-02 01:09:26 +00: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
@ -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…
x
Reference in New Issue
Block a user