Skip to content

Commit

Permalink
Add bacxk ctrl/cmd + f to electron
Browse files Browse the repository at this point in the history
  • Loading branch information
belcherj committed May 14, 2020
1 parent 1e20f6c commit 0148881
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,10 @@ export const App = connect(
return false;
}

if (cmdOrCtrl && shiftKey && 'KeyS' === code) {
if (
(cmdOrCtrl && shiftKey && 'KeyS' === code) ||
(isElectron && cmdOrCtrl && !shiftKey && 'KeyF' === code)
) {
this.props.focusSearchField();

event.stopPropagation();
Expand Down

0 comments on commit 0148881

Please sign in to comment.