Merge pull request #5548 from SimonBrandner/add-search-shortcut

Add optional search shortcut
This commit is contained in:
J. Ryan Stinnett 2021-01-28 12:33:32 +00:00 committed by GitHub
commit 5431dc7331
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 26 additions and 0 deletions

View file

@ -425,6 +425,14 @@ class LoggedInView extends React.Component<IProps, IState> {
handled = true;
}
break;
case Key.F:
if (ctrlCmdOnly && SettingsStore.getValue("ctrlFForSearch")) {
dis.dispatch({
action: 'focus_search',
});
handled = true;
}
break;
case Key.BACKTICK:
// Ideally this would be CTRL+P for "Profile", but that's
// taken by the print dialog. CTRL+I for "Information"