@lvce-editor/explorer-view 3.4.0 → 3.5.0
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/explorerViewWorkerMain.js +17 -13
- package/package.json +1 -1
|
@@ -2635,6 +2635,14 @@ const KeyCode = {
|
|
|
2635
2635
|
Star,
|
|
2636
2636
|
UpArrow
|
|
2637
2637
|
};
|
|
2638
|
+
const CtrlCmd = 1 << 11 >>> 0;
|
|
2639
|
+
const Shift = 1 << 10 >>> 0;
|
|
2640
|
+
const Alt = 1 << 9 >>> 0;
|
|
2641
|
+
const KeyModifier = {
|
|
2642
|
+
__proto__: null,
|
|
2643
|
+
Alt,
|
|
2644
|
+
CtrlCmd,
|
|
2645
|
+
Shift};
|
|
2638
2646
|
const mergeClassNames = (...classNames) => {
|
|
2639
2647
|
return classNames.filter(Boolean).join(' ');
|
|
2640
2648
|
};
|
|
@@ -2653,20 +2661,16 @@ const text = data => {
|
|
|
2653
2661
|
};
|
|
2654
2662
|
};
|
|
2655
2663
|
|
|
2656
|
-
const CtrlCmd = 1 << 11 >>> 0;
|
|
2657
|
-
const Shift = 1 << 10 >>> 0;
|
|
2658
|
-
const Alt = 1 << 9 >>> 0;
|
|
2659
|
-
|
|
2660
2664
|
const FocusExplorer = 13;
|
|
2661
2665
|
const FocusExplorerEditBox = 14;
|
|
2662
2666
|
|
|
2663
2667
|
const getKeyBindings = () => {
|
|
2664
2668
|
return [{
|
|
2665
|
-
key: Shift | KeyCode.UpArrow,
|
|
2669
|
+
key: KeyModifier.Shift | KeyCode.UpArrow,
|
|
2666
2670
|
command: 'Explorer.selectUp',
|
|
2667
2671
|
when: FocusExplorer
|
|
2668
2672
|
}, {
|
|
2669
|
-
key: Shift | KeyCode.DownArrow,
|
|
2673
|
+
key: KeyModifier.Shift | KeyCode.DownArrow,
|
|
2670
2674
|
command: 'Explorer.selectDown',
|
|
2671
2675
|
when: FocusExplorer
|
|
2672
2676
|
}, {
|
|
@@ -2694,27 +2698,27 @@ const getKeyBindings = () => {
|
|
|
2694
2698
|
command: 'Explorer.focusNext',
|
|
2695
2699
|
when: FocusExplorer
|
|
2696
2700
|
}, {
|
|
2697
|
-
key: CtrlCmd | KeyCode.Star,
|
|
2701
|
+
key: KeyModifier.CtrlCmd | KeyCode.Star,
|
|
2698
2702
|
command: 'Explorer.expandAll',
|
|
2699
2703
|
when: FocusExplorer
|
|
2700
2704
|
}, {
|
|
2701
|
-
key: Alt | KeyCode.RightArrow,
|
|
2705
|
+
key: KeyModifier.Alt | KeyCode.RightArrow,
|
|
2702
2706
|
command: 'Explorer.expandRecursively',
|
|
2703
2707
|
when: FocusExplorer
|
|
2704
2708
|
}, {
|
|
2705
|
-
key: CtrlCmd | KeyCode.LeftArrow,
|
|
2709
|
+
key: KeyModifier.CtrlCmd | KeyCode.LeftArrow,
|
|
2706
2710
|
command: 'Explorer.collapseAll',
|
|
2707
2711
|
when: FocusExplorer
|
|
2708
2712
|
}, {
|
|
2709
|
-
key: CtrlCmd | KeyCode.KeyV,
|
|
2713
|
+
key: KeyModifier.CtrlCmd | KeyCode.KeyV,
|
|
2710
2714
|
command: 'Explorer.handlePaste',
|
|
2711
2715
|
when: FocusExplorer
|
|
2712
2716
|
}, {
|
|
2713
|
-
key: CtrlCmd | KeyCode.KeyC,
|
|
2717
|
+
key: KeyModifier.CtrlCmd | KeyCode.KeyC,
|
|
2714
2718
|
command: 'Explorer.handleCopy',
|
|
2715
2719
|
when: FocusExplorer
|
|
2716
2720
|
}, {
|
|
2717
|
-
key: CtrlCmd | KeyCode.KeyX,
|
|
2721
|
+
key: KeyModifier.CtrlCmd | KeyCode.KeyX,
|
|
2718
2722
|
command: 'Explorer.handleCut',
|
|
2719
2723
|
when: FocusExplorer
|
|
2720
2724
|
}, {
|
|
@@ -2746,7 +2750,7 @@ const getKeyBindings = () => {
|
|
|
2746
2750
|
command: 'Explorer.handleClickCurrent',
|
|
2747
2751
|
when: FocusExplorer
|
|
2748
2752
|
}, {
|
|
2749
|
-
key: CtrlCmd | KeyCode.KeyA,
|
|
2753
|
+
key: KeyModifier.CtrlCmd | KeyCode.KeyA,
|
|
2750
2754
|
command: 'Explorer.selectAll',
|
|
2751
2755
|
when: FocusExplorer
|
|
2752
2756
|
}];
|