2
0
Fork 0
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:
Robin Ward 2014-12-15 12:53:41 -05:00
parent da7fefa263
commit a2c97b9e6b

View file

@ -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();
});
},