mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: If a user uses the keyboard to navigate, don't bubble up the event.
This commit is contained in:
@@ -189,7 +189,8 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
|
|||||||
|
|
||||||
_bindToClick: function(selector, binding) {
|
_bindToClick: function(selector, binding) {
|
||||||
binding = binding.split(',');
|
binding = binding.split(',');
|
||||||
this.keyTrapper.bind(binding, function() {
|
this.keyTrapper.bind(binding, function(e) {
|
||||||
|
e.preventDefault();
|
||||||
$(selector).click();
|
$(selector).click();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user