mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 21:45:25 -05:00
UX: switch global search trigger to ctrl+alt+s
Otherwise it conflicts with firefox
This commit is contained in:
@@ -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+shift+s','command+shift+s'], (event) =>{
|
||||
mouseTrap.bind(['ctrl+alt+s','command+alt+s'], (event) =>{
|
||||
this.appEvents.trigger('header:keyboard-trigger', {type: 'search', event});
|
||||
return true;
|
||||
});
|
||||
|
||||
@@ -6,8 +6,8 @@ const bindings = {
|
||||
'!': {postAction: 'showFlags'},
|
||||
'#': {handler: 'goToPost', anonymous: true},
|
||||
'/': {handler: 'toggleSearch', anonymous: true},
|
||||
'ctrl+shift+s': {handler: 'toggleSearch', anonymous: true},
|
||||
'command+shift+s': {handler: 'toggleSearch', anonymous: true},
|
||||
'ctrl+alt+s': {handler: 'toggleSearch', anonymous: true},
|
||||
'command+alt+s': {handler: 'toggleSearch', anonymous: true},
|
||||
'=': {handler: 'toggleHamburgerMenu', anonymous: true},
|
||||
'?': {handler: 'showHelpModal', anonymous: true},
|
||||
'.': {click: '.alert.alert-info.clickable', anonymous: true}, // show incoming/updated topics
|
||||
|
||||
Reference in New Issue
Block a user