From fe814e3de66bc4c3fee6d330a99de920665faf90 Mon Sep 17 00:00:00 2001 From: Jeff Sandberg Date: Wed, 30 Aug 2023 00:54:50 -0600 Subject: [PATCH] =?UTF-8?q?Add=20=E2=8C=98+=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Macs use metaKey, which is bound on a mac keyboard as ⌘ for the majority of their shortcuts. This adds support for that OR control --- src/lib/components/markdown/MarkdownEditor.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/markdown/MarkdownEditor.svelte b/src/lib/components/markdown/MarkdownEditor.svelte index 180a55cd..88661211 100644 --- a/src/lib/components/markdown/MarkdownEditor.svelte +++ b/src/lib/components/markdown/MarkdownEditor.svelte @@ -233,7 +233,7 @@ overflow-hidden focus-within:border-black focus-within:dark:border-white transit bind:item={textArea} on:keydown={(e) => { if (disabled) return - if (e.ctrlKey) { + if (e.ctrlKey || e.metaKey) { // @ts-ignore let shortcut = shortcuts[e.code] if (shortcut) {