diff --git a/app/assets/javascripts/discourse/lib/keyboard_shortcuts.js b/app/assets/javascripts/discourse/lib/keyboard_shortcuts.js index 624a5431124..435d0724680 100644 --- a/app/assets/javascripts/discourse/lib/keyboard_shortcuts.js +++ b/app/assets/javascripts/discourse/lib/keyboard_shortcuts.js @@ -190,7 +190,7 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({ _bindToClick: function(selector, binding) { binding = binding.split(','); this.keyTrapper.bind(binding, function(e) { - e.preventDefault(); + if (e) { e.preventDefault(); } $(selector).click(); }); },