feat(Kbd): special keys for macOS and other systems (#2494)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Alexander
2024-10-31 19:14:15 +05:00
committed by GitHub
parent f26f6c8168
commit 332c6c08d7
9 changed files with 283 additions and 268 deletions

View File

@@ -31,7 +31,7 @@ props:
---
::
You can pass special keys to the `value` prop that goes through the [`useKbd`](https://github.com/nuxt/ui/blob/v3/src/runtime/composables/useKbd.ts) composable. For example, the `meta` key displays as `⌘` on macOS and `Ctrl` on other platforms.
You can pass special keys to the `value` prop that goes through the [`useKbd`](https://github.com/nuxt/ui/blob/v3/src/runtime/composables/useKbd.ts) composable. For example, the `meta` key displays as `⌘` on macOS and `` on other platforms.
::component-code
---
@@ -40,6 +40,7 @@ props:
items:
value:
- meta
- win
- command
- shift
- ctrl