Skip to content

Commit

Permalink
fix Ctrl+Shift+F hotkey (alternative to Ctrl+I to open Wizard)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd committed Nov 3, 2024
1 parent 21648f0 commit 59ec758
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
data-ide-handler="click:onFfsClick"
title=""
data-t="[title]nav.wizard_tt"
data-shortcut="Ctrl+Shift+F"
data-shortcut="Ctrl+I"
>
<span class="icon">
<span class="fas fa-magic"></span>
Expand Down
6 changes: 3 additions & 3 deletions js/ide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2560,13 +2560,13 @@ class IDE {
(event.key == "i" &&
(event.ctrlKey || event.metaKey) &&
!event.shiftKey &&
!event.altKey) || // Ctrl+I
(event.key == "f" &&
!event.altKey) ||
(event.key == "F" &&
(event.ctrlKey || event.metaKey) &&
event.shiftKey &&
!event.altKey)
) {
// Ctrl+Shift+F
// Ctrl+I or Ctrl+Shift+F
this.onFfsClick();
event.preventDefault();
}
Expand Down

0 comments on commit 59ec758

Please sign in to comment.