@lvce-editor/title-bar-worker 4.6.0 → 4.6.1
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/titleBarWorkerMain.js +22 -19
- package/package.json +1 -1
|
@@ -1937,7 +1937,7 @@ const getMenuEntries$e = () => {
|
|
|
1937
1937
|
id: 'fullScreen',
|
|
1938
1938
|
keyboardShortCut: 'F11',
|
|
1939
1939
|
label: fullScreen()
|
|
1940
|
-
}, entry('zenMode', 'Zen Mode', 'Ctrl+K Z'), entry('centeredLayout', 'Centered Layout'), menuEntrySeparator, checkedEntry('menuBar', 'Menu Bar'), commandEntry('primarySideBar', 'Primary Side Bar', 'Layout.toggleSideBar', 'Ctrl+B'), commandEntry('secondarySideBar', 'Secondary Side Bar', 'Layout.toggleSecondarySideBar', 'Ctrl+Alt+B'), commandEntry('statusBar', 'Status Bar', 'Layout.toggleStatusBar', '', Checked), commandEntry('panel', 'Panel', 'Layout.togglePanel', 'Ctrl+J', Checked), menuEntrySeparator, entry('movePrimarySideBarLeft', 'Move Primary Side Bar Left'), entry('activityBarPosition', 'Activity Bar Position'), entry('panelPosition', 'Panel Position'), entry('alignPanel', 'Align Panel'), entry('tabBar', 'Tab Bar'), entry('editorActionsPosition', 'Editor Actions Position'), menuEntrySeparator, entry('minimap', 'Minimap'), entry('breadcrumbs', 'Breadcrumbs'), entry('stickyScroll', 'Sticky Scroll'), entry('renderWhitespace', 'Render Whitespace'), checkedEntry('renderControlCharacters', 'Render Control Characters'), menuEntrySeparator,
|
|
1940
|
+
}, entry('zenMode', 'Zen Mode', 'Ctrl+K Z'), entry('centeredLayout', 'Centered Layout'), menuEntrySeparator, checkedEntry('menuBar', 'Menu Bar'), commandEntry('primarySideBar', 'Primary Side Bar', 'Layout.toggleSideBar', 'Ctrl+B'), commandEntry('secondarySideBar', 'Secondary Side Bar', 'Layout.toggleSecondarySideBar', 'Ctrl+Alt+B'), commandEntry('statusBar', 'Status Bar', 'Layout.toggleStatusBar', '', Checked), commandEntry('panel', 'Panel', 'Layout.togglePanel', 'Ctrl+J', Checked), menuEntrySeparator, entry('movePrimarySideBarLeft', 'Move Primary Side Bar Left'), entry('activityBarPosition', 'Activity Bar Position'), entry('panelPosition', 'Panel Position'), entry('alignPanel', 'Align Panel'), entry('tabBar', 'Tab Bar'), entry('editorActionsPosition', 'Editor Actions Position'), menuEntrySeparator, entry('minimap', 'Minimap'), entry('breadcrumbs', 'Breadcrumbs'), entry('stickyScroll', 'Sticky Scroll'), entry('renderWhitespace', 'Render Whitespace'), checkedEntry('renderControlCharacters', 'Render Control Characters'), menuEntrySeparator, commandEntry('zoomIn', 'Zoom In', 'Window.zoomIn', 'Ctrl+='), commandEntry('zoomOut', 'Zoom Out', 'Window.zoomOut', 'Ctrl+-'), commandEntry('resetZoom', 'Reset Zoom', 'Window.zoomReset', 'Ctrl+NumPad0')];
|
|
1941
1941
|
};
|
|
1942
1942
|
|
|
1943
1943
|
const cut = () => {
|
|
@@ -3574,23 +3574,25 @@ const TitleBarTopLevelEntry = 'TitleBarTopLevelEntry';
|
|
|
3574
3574
|
const TitleBarTopLevelEntryLabel = 'TitleBarTopLevelEntryLabel';
|
|
3575
3575
|
const Viewlet = 'Viewlet';
|
|
3576
3576
|
|
|
3577
|
-
const checkboxChecked = {
|
|
3578
|
-
ariaChecked: true,
|
|
3579
|
-
childCount: 2,
|
|
3580
|
-
className: mergeClassNames(MenuItem, MenuItemCheckMark),
|
|
3581
|
-
role: MenuItemCheckBox,
|
|
3582
|
-
tabIndex: -1,
|
|
3583
|
-
type: Div
|
|
3584
|
-
};
|
|
3585
3577
|
const checkMark = {
|
|
3586
3578
|
className: mergeClassNames(MenuItemCheckmarkIcon, MaskIconCheck),
|
|
3587
3579
|
type: Div
|
|
3588
3580
|
};
|
|
3589
3581
|
const getMenuItemCheckedDom = menuItem => {
|
|
3590
3582
|
const {
|
|
3583
|
+
isFocused,
|
|
3591
3584
|
label
|
|
3592
3585
|
} = menuItem;
|
|
3593
|
-
|
|
3586
|
+
const baseClassName = mergeClassNames(MenuItem, MenuItemCheckMark);
|
|
3587
|
+
const className = isFocused ? mergeClassNames(baseClassName, MenuItemFocused) : baseClassName;
|
|
3588
|
+
return [{
|
|
3589
|
+
ariaChecked: true,
|
|
3590
|
+
childCount: 2,
|
|
3591
|
+
className,
|
|
3592
|
+
role: MenuItemCheckBox,
|
|
3593
|
+
tabIndex: -1,
|
|
3594
|
+
type: Div
|
|
3595
|
+
}, checkMark, text(label)];
|
|
3594
3596
|
};
|
|
3595
3597
|
|
|
3596
3598
|
const getKeyBindingString = (key, altKey, ctrlKey, shiftKey, metaKey) => {
|
|
@@ -3700,19 +3702,20 @@ const getMenuItemSubMenuDom = menuItem => {
|
|
|
3700
3702
|
}, text(label), arrowRight];
|
|
3701
3703
|
};
|
|
3702
3704
|
|
|
3703
|
-
const checkboxUnchecked = {
|
|
3704
|
-
ariaChecked: false,
|
|
3705
|
-
childCount: 1,
|
|
3706
|
-
className: MenuItem,
|
|
3707
|
-
role: MenuItemCheckBox,
|
|
3708
|
-
tabIndex: -1,
|
|
3709
|
-
type: Div
|
|
3710
|
-
};
|
|
3711
3705
|
const getMenuItemUncheckedDom = menuItem => {
|
|
3712
3706
|
const {
|
|
3707
|
+
isFocused,
|
|
3713
3708
|
label
|
|
3714
3709
|
} = menuItem;
|
|
3715
|
-
|
|
3710
|
+
const className = isFocused ? mergeClassNames(MenuItem, MenuItemFocused) : MenuItem;
|
|
3711
|
+
return [{
|
|
3712
|
+
ariaChecked: false,
|
|
3713
|
+
childCount: 1,
|
|
3714
|
+
className,
|
|
3715
|
+
role: MenuItemCheckBox,
|
|
3716
|
+
tabIndex: -1,
|
|
3717
|
+
type: Div
|
|
3718
|
+
}, text(label)];
|
|
3716
3719
|
};
|
|
3717
3720
|
|
|
3718
3721
|
const getMenuItemRenderer = flags => {
|