From 7f9b0f5e6099e0b1a3d424b8797fb8ee2cd909e7 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 18 Oct 2017 12:20:45 +1100 Subject: [PATCH] try moving shortcut to ctrl+alt+f --- app/assets/javascripts/discourse/components/d-editor.js.es6 | 2 +- app/assets/javascripts/discourse/lib/keyboard-shortcuts.js.es6 | 3 +-- config/locales/client.en.yml | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/components/d-editor.js.es6 b/app/assets/javascripts/discourse/components/d-editor.js.es6 index 441bfe4e87d..07cb6872a7a 100644 --- a/app/assets/javascripts/discourse/components/d-editor.js.es6 +++ b/app/assets/javascripts/discourse/components/d-editor.js.es6 @@ -233,7 +233,7 @@ export default Ember.Component.extend({ const shortcuts = this.get('toolbar.shortcuts'); // for some reason I am having trouble bubbling this so hack it in - mouseTrap.bind(['ctrl+alt+s','command+alt+s'], (event) =>{ + mouseTrap.bind(['ctrl+alt+f'], (event) =>{ this.appEvents.trigger('header:keyboard-trigger', {type: 'search', event}); return true; }); diff --git a/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js.es6 b/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js.es6 index bf36a4a50cd..b011f8bab06 100644 --- a/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js.es6 +++ b/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js.es6 @@ -6,8 +6,7 @@ const bindings = { '!': {postAction: 'showFlags'}, '#': {handler: 'goToPost', anonymous: true}, '/': {handler: 'toggleSearch', anonymous: true}, - 'ctrl+alt+s': {handler: 'toggleSearch', anonymous: true}, - 'command+alt+s': {handler: 'toggleSearch', anonymous: true}, + 'ctrl+alt+f': {handler: 'toggleSearch', anonymous: true}, '=': {handler: 'toggleHamburgerMenu', anonymous: true}, '?': {handler: 'showHelpModal', anonymous: true}, '.': {click: '.alert.alert-info.clickable', anonymous: true}, // show incoming/updated topics diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 8284adbcd5e..db8bf8bd1b0 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -2383,7 +2383,7 @@ en: hamburger_menu: '= Open hamburger menu' user_profile_menu: 'p Open user menu' show_incoming_updated_topics: '. Show updated topics' - search: '/ or ctrl+alt+s Search' + search: '/ or ctrl+alt+f Search' help: '? Open keyboard help' dismiss_new_posts: 'x, r Dismiss New/Posts' dismiss_topics: 'x, t Dismiss Topics'