Skip to content

Commit

Permalink
Change default emacs meta key to Alt on non Linux and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
heyman committed Jan 5, 2024
1 parent 05429f7 commit 829ee1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion electron/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Store from "electron-store"
import { isMac } from "./detect-platform"

const isDev = !!process.env.VITE_DEV_SERVER_URL

Expand Down Expand Up @@ -50,7 +51,7 @@ const schema = {
const defaults = {
settings: {
keymap: "default",
emacsMetaKey: "meta",
emacsMetaKey: isMac ? "meta" : "alt",
showLineNumberGutter: true,
showFoldGutter: true,
autoUpdate: true,
Expand Down
2 changes: 1 addition & 1 deletion src/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class HeynoteEditor {
theme="light",
saveFunction=null,
keymap="default",
emacsMetaKey="Meta",
emacsMetaKey,
showLineNumberGutter=true,
showFoldGutter=true,
bracketClosing=false,
Expand Down

0 comments on commit 829ee1c

Please sign in to comment.