mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-30 03:38:54 +01:00
@@ -19,7 +19,6 @@ defineShortcuts({
|
|||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
|
|
||||||
- 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.
|
- 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.
|
- 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
|
#### Modifiers
|
||||||
|
|
||||||
- `meta`: Represents Command (⌘) on macOS and Control on other platforms
|
- `meta`: Represents `⌘ Command` on macOS and `⊞ Windows` on Windows
|
||||||
- `ctrl`: Represents Control key
|
- `ctrl`: Represents `Ctrl` on all platforms
|
||||||
- `shift`: Used for alphabetic keys when Shift is required
|
- `shift`: Used for alphabetic keys when Shift is required
|
||||||
|
|
||||||
#### Special Keys
|
#### Special Keys
|
||||||
|
|||||||
Reference in New Issue
Block a user