Skip to content

Commit

Permalink
fix: use mod for default keybinds
Browse files Browse the repository at this point in the history
mod evaluates to ctrl on Windows/Linux and cmd on MacOS

fixes #338
  • Loading branch information
chrisbilodeau committed Jan 3, 2025
1 parent d439bd8 commit c8f0715
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/state/keybinds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import type {
} from "jotai/vanilla/utils/atomWithStorage";

const keys = {
NEW_TAB: { name: "New tab", keys: "ctrl+t" },
CLOSE_TAB: { name: "Close tab", keys: "ctrl+w" },
OPEN_FILE: { name: "Open File", keys: "ctrl+o" },
SAVE_FILE: { name: "Save File", keys: "ctrl+s" },
NEW_TAB: { name: "New tab", keys: "mod+t" },
CLOSE_TAB: { name: "Close tab", keys: "mod+w" },
OPEN_FILE: { name: "Open File", keys: "mod+o" },
SAVE_FILE: { name: "Save File", keys: "mod+s" },
SWAP_ORIENTATION: { name: "Swap orientation", keys: "f" },
CLEAR_SHAPES: { name: "Clear shapes", keys: "ctrl+l" },
CLEAR_SHAPES: { name: "Clear shapes", keys: "mod+l" },
NEXT_MOVE: { name: "Next move", keys: "arrowright" },
PREVIOUS_MOVE: { name: "Previous move", keys: "arrowleft" },
GO_TO_BRANCH_START: { name: "Go to start of branch", keys: "arrowup" },
Expand Down Expand Up @@ -42,8 +42,8 @@ const keys = {
ANNOTATION_DUBIOUS: { name: "Toggle dubious move annotation", keys: "4" },
ANNOTATION_MISTAKE: { name: "Toggle mistake move annotation", keys: "5" },
ANNOTATION_BLUNDER: { name: "Toggle blunder move annotation", keys: "6" },
TOGGLE_ALL_ENGINES: { name: "Toggle all engines", keys: "ctrl+a" },
TOGGLE_BLUR: { name: "Toggle blur", keys: "ctrl+b" },
TOGGLE_ALL_ENGINES: { name: "Toggle all engines", keys: "mod+a" },
TOGGLE_BLUR: { name: "Toggle blur", keys: "mod+b" },
PREVIOUS_GAME: { name: "Previous game", keys: "pageup" },
NEXT_GAME: { name: "Next game", keys: "pagedown" },
};
Expand Down

0 comments on commit c8f0715

Please sign in to comment.