Merge pull request #133 from paradox460/main

Add ⌘+<shortcut> support
This commit is contained in:
Xylight authored and GitHub committed 2023-08-30 14:10:16 +00:00
commit 6c24689016
1 file changed
+1 -1
@@ -233,7 +233,7 @@ overflow-hidden focus-within:border-black focus-within:dark:border-white transit
bind:item={textArea} bind:item={textArea}
on:keydown={(e) => { on:keydown={(e) => {
if (disabled) return if (disabled) return
if (e.ctrlKey) { if (e.ctrlKey || e.metaKey) {
// @ts-ignore // @ts-ignore
let shortcut = shortcuts[e.code] let shortcut = shortcuts[e.code]
if (shortcut) { if (shortcut) {