1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

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
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"