Add ⌘+<shortcut> support

Macs use metaKey, which is bound on a mac keyboard
as ⌘ for the majority of their shortcuts. This adds support for that
OR control
This commit is contained in:
Jeff Sandberg committed 2023-08-30 00:54:50 -06:00
1 parent 5c3ba8e298
commit fe814e3de6
1 file changed
+1 -1
@@ -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) {