diff --git a/app/assets/javascripts/discourse/components/keyboard_shortcuts_component.js b/app/assets/javascripts/discourse/components/keyboard_shortcuts_component.js index 4be9ac9a9..7569b00fa 100644 --- a/app/assets/javascripts/discourse/components/keyboard_shortcuts_component.js +++ b/app/assets/javascripts/discourse/components/keyboard_shortcuts_component.js @@ -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(); }); },