Skip to content

Commit

Permalink
fixed search shortcut on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
viliusle committed Jun 22, 2021
1 parent fa6d7b6 commit 997089d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/js/core/base-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class Base_search_class {
return;
}

var code = event.key.toLowerCase();
if (code == "f3") {
var code = event.key;
if (code == "F3" || ( (event.ctrlKey == true || event.metaKey) && code == "f")) {
//open
this.search();
event.preventDefault();
Expand Down
2 changes: 1 addition & 1 deletion src/js/modules/help/shortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Help_shortcuts_class {
className: 'shortcuts',
params: [
{title: "F", value: 'Auto Adjust Colors'},
{title: "F3", value: 'Search'},
{title: "F3 / ⌘ + F", value: 'Search'},
{title: "Ctrl + C", value: 'Copy to Clipboard'},
{title: "D", value: 'Duplicate'},
{title: "S", value: 'Export'},
Expand Down

0 comments on commit 997089d

Please sign in to comment.