From 76c527d8b9b3d2b8e31b5646e558e6da86c41308 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Sat, 15 Feb 2025 16:33:16 +0100 Subject: [PATCH] docs(define-shortcuts): clarify meta key on windows Resolves #3318 --- docs/content/2.composables/define-shortcuts.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/content/2.composables/define-shortcuts.md b/docs/content/2.composables/define-shortcuts.md index f344572d..2e3f5d9f 100644 --- a/docs/content/2.composables/define-shortcuts.md +++ b/docs/content/2.composables/define-shortcuts.md @@ -19,7 +19,6 @@ defineShortcuts({ ``` -- Shortcuts are automatically adjusted for non-macOS platforms, converting `meta` to `ctrl`. - The composable uses VueUse's [`useEventListener`](https://vueuse.org/core/useEventListener/) to handle keydown events. - For a complete list of available shortcut keys, refer to the [`KeyboardEvent.key`](https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values) API documentation. Note that the key should be written in lowercase. @@ -47,8 +46,8 @@ Shortcuts are defined using the following format: #### Modifiers -- `meta`: Represents Command (⌘) on macOS and Control on other platforms -- `ctrl`: Represents Control key +- `meta`: Represents `⌘ Command` on macOS and `⊞ Windows` on Windows +- `ctrl`: Represents `Ctrl` on all platforms - `shift`: Used for alphabetic keys when Shift is required #### Special Keys