Made search shortcut optional
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
8853508363
commit
e7384f829a
3 changed files with 7 additions and 1 deletions
|
@ -420,7 +420,7 @@ class LoggedInView extends React.Component<IProps, IState> {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case Key.F:
|
case Key.F:
|
||||||
if (ctrlCmdOnly) {
|
if (ctrlCmdOnly && SettingsStore.getValue("ctrlFForSearch")) {
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: 'focus_search',
|
action: 'focus_search',
|
||||||
});
|
});
|
||||||
|
|
|
@ -52,6 +52,7 @@ export default class PreferencesUserSettingsTab extends React.Component {
|
||||||
'showImages',
|
'showImages',
|
||||||
'showChatEffects',
|
'showChatEffects',
|
||||||
'Pill.shouldShowPillAvatar',
|
'Pill.shouldShowPillAvatar',
|
||||||
|
'ctrlFForSearch',
|
||||||
];
|
];
|
||||||
|
|
||||||
static GENERAL_SETTINGS = [
|
static GENERAL_SETTINGS = [
|
||||||
|
|
|
@ -331,6 +331,11 @@ export const SETTINGS: {[setting: string]: ISetting} = {
|
||||||
displayName: _td("Show typing notifications"),
|
displayName: _td("Show typing notifications"),
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
"ctrlFForSearch": {
|
||||||
|
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
||||||
|
displayName: isMac ? _td("Use Command + F to search") : _td("Use Ctrl + F to search"),
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
"MessageComposerInput.ctrlEnterToSend": {
|
"MessageComposerInput.ctrlEnterToSend": {
|
||||||
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
||||||
displayName: isMac ? _td("Use Command + Enter to send a message") : _td("Use Ctrl + Enter to send a message"),
|
displayName: isMac ? _td("Use Command + Enter to send a message") : _td("Use Ctrl + Enter to send a message"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue