@narumitw/pi-btw 0.61.1 → 0.61.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.ts +3 -0
- package/dist/index.ts.map +2 -2
- package/package.json +4 -4
- package/src/fullscreen-ui.ts +6 -0
- package/src/keybindings.ts +1 -1
package/dist/index.ts
CHANGED
|
@@ -1733,6 +1733,9 @@ function normalizedKeyId(key) {
|
|
|
1733
1733
|
const parts = key.toLowerCase().split("+");
|
|
1734
1734
|
const base = parts.at(-1);
|
|
1735
1735
|
if (!base) return "";
|
|
1736
|
+
const configuredModifiers = parts.slice(0, -1);
|
|
1737
|
+
if (new Set(configuredModifiers).size !== configuredModifiers.length || configuredModifiers.some((modifier) => !KEY_MODIFIER_ORDER.includes(modifier)))
|
|
1738
|
+
return "";
|
|
1736
1739
|
const normalizedBase = base === "esc" ? "escape" : base === "return" ? "enter" : base;
|
|
1737
1740
|
const modifiers = KEY_MODIFIER_ORDER.filter((modifier) => parts.includes(modifier));
|
|
1738
1741
|
return [...modifiers, normalizedBase].join("+");
|