@headless-tree/core 0.0.0-20250818215955 → 0.0.0-20250818221556
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/CHANGELOG.md +7 -1
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
- package/src/features/hotkeys-core/feature.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# @headless-tree/core
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-20250818221556
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 215ab4b: add a new symbol that can be used in hotkey configurations "metaorcontrol" that will trigger if either any windows control key or mac meta key is pressed (#141)
|
|
8
|
+
|
|
9
|
+
## 1.4.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
6
12
|
|
package/dist/index.js
CHANGED
|
@@ -929,7 +929,8 @@ var specialKeys = {
|
|
|
929
929
|
plus: /^(NumpadAdd|Plus)$/,
|
|
930
930
|
minus: /^(NumpadSubtract|Minus)$/,
|
|
931
931
|
control: /^(ControlLeft|ControlRight)$/,
|
|
932
|
-
shift: /^(ShiftLeft|ShiftRight)
|
|
932
|
+
shift: /^(ShiftLeft|ShiftRight)$/,
|
|
933
|
+
metaorcontrol: /^(MetaLeft|MetaRight|ControlLeft|ControlRight)$/
|
|
933
934
|
};
|
|
934
935
|
var testHotkeyMatch = (pressedKeys, tree, hotkey) => {
|
|
935
936
|
const supposedKeys = hotkey.hotkey.toLowerCase().split("+");
|
package/dist/index.mjs
CHANGED
|
@@ -885,7 +885,8 @@ var specialKeys = {
|
|
|
885
885
|
plus: /^(NumpadAdd|Plus)$/,
|
|
886
886
|
minus: /^(NumpadSubtract|Minus)$/,
|
|
887
887
|
control: /^(ControlLeft|ControlRight)$/,
|
|
888
|
-
shift: /^(ShiftLeft|ShiftRight)
|
|
888
|
+
shift: /^(ShiftLeft|ShiftRight)$/,
|
|
889
|
+
metaorcontrol: /^(MetaLeft|MetaRight|ControlLeft|ControlRight)$/
|
|
889
890
|
};
|
|
890
891
|
var testHotkeyMatch = (pressedKeys, tree, hotkey) => {
|
|
891
892
|
const supposedKeys = hotkey.hotkey.toLowerCase().split("+");
|
package/package.json
CHANGED
|
@@ -13,6 +13,7 @@ const specialKeys: Record<string, RegExp> = {
|
|
|
13
13
|
minus: /^(NumpadSubtract|Minus)$/,
|
|
14
14
|
control: /^(ControlLeft|ControlRight)$/,
|
|
15
15
|
shift: /^(ShiftLeft|ShiftRight)$/,
|
|
16
|
+
metaorcontrol: /^(MetaLeft|MetaRight|ControlLeft|ControlRight)$/,
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
const testHotkeyMatch = (
|