From 0625465e4ae2cff89e711d68966c752372acef8f Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 2 Jun 2014 11:21:00 +1000 Subject: [PATCH] FEATURE: CTRL+F is useless, use our search instead --- app/assets/javascripts/discourse/lib/keyboard_shortcuts.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/keyboard_shortcuts.js b/app/assets/javascripts/discourse/lib/keyboard_shortcuts.js index 55dd6c76f14..b6362c34da5 100644 --- a/app/assets/javascripts/discourse/lib/keyboard_shortcuts.js +++ b/app/assets/javascripts/discourse/lib/keyboard_shortcuts.js @@ -36,7 +36,7 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({ 'r': '.topic-post.selected button.create', // reply to selected post 'shift+s': '#topic-footer-buttons button.share', // share topic 's': '.topic-post.selected button.share', // share selected post - '!': '.topic-post.selected button.flag' // flag selected post + '!': '.topic-post.selected button.flag' // flag selected post }, FUNCTION_BINDINGS: { @@ -48,6 +48,8 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({ '`': 'nextSection', '~': 'prevSection', '/': 'showSearch', + 'ctrl+f': 'showSearch', + 'command+f': 'showSearch', '?': 'showHelpModal', // open keyboard shortcut help 'q': 'quoteReply' },