From ea1c9c7e4ef8ddb98f59083298125bf99db71bea Mon Sep 17 00:00:00 2001 From: Ian Sanders Date: Thu, 7 Dec 2023 19:35:05 +0000 Subject: [PATCH] Replace `Command` with `Meta` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 36f2d9f..9b0e68e 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ for (const el of document.querySelectorAll('[data-shortcut]')) { 3. Due to the inconsistent lowercasing of `event.key` on Mac and iOS when `Meta` is pressed along with `Shift`, it is recommended to avoid hotkey strings containing both `Mod` and `Shift`. 7. `"Plus"` and `"Space"` are special key names to represent the `+` and ` ` keys respectively, because these symbols cannot be represented in the normal hotkey string syntax. 8. You can use the comma key `,` as a hotkey, e.g. `a,,` would activate if the user typed `a` or `,`. `Control+,,x` would activate for `Control+,` or `x`. -9. `"Shift"` should be included if it would be held and the key is uppercase: ie, `Shift+A` not `A`. Note however that MacOS outputs lowercase keys when `Command+Shift` is held; see 6.3 above. +9. `"Shift"` should be included if it would be held and the key is uppercase: ie, `Shift+A` not `A`. Note however that MacOS outputs lowercase keys when `Meta+Shift` is held (ie, `Meta+Shift+a`); see 6.3 above. ### Example