@lvce-editor/title-bar-worker 4.4.0 → 4.6.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/titleBarWorkerMain.js +231 -14
- package/package.json +1 -1
|
@@ -1582,6 +1582,9 @@ const CommandCenter = 'Command Center';
|
|
|
1582
1582
|
const CommandPalette = 'Command Palette';
|
|
1583
1583
|
const Edit$1 = 'Edit';
|
|
1584
1584
|
const EditorLayout = 'Editor Layout';
|
|
1585
|
+
const FlipLayout = 'Flip Layout';
|
|
1586
|
+
const FullScreen = 'Full Screen';
|
|
1587
|
+
const GridTwoByTwo = 'Grid (2x2)';
|
|
1585
1588
|
const Explorer = 'Explorer';
|
|
1586
1589
|
const File$2 = 'File';
|
|
1587
1590
|
const Go$1 = 'Go';
|
|
@@ -1597,6 +1600,7 @@ const Problems = 'Problems';
|
|
|
1597
1600
|
const Run$1 = 'Run';
|
|
1598
1601
|
const Search = 'Search';
|
|
1599
1602
|
const Selection$1 = 'Selection';
|
|
1603
|
+
const ShowAllCommands = 'Show All Commands';
|
|
1600
1604
|
const SourceControl = 'Source Control';
|
|
1601
1605
|
const Terminal$1 = 'Terminal';
|
|
1602
1606
|
const ToggleDeveloperTools = 'Toggle Developer Tools';
|
|
@@ -1609,6 +1613,7 @@ const AddCursorsToLineEnds = 'Add Cursors to Line ends';
|
|
|
1609
1613
|
const AddNextOccurrence = 'Add Next Occurrence';
|
|
1610
1614
|
const AddPreviousOccurrence = 'Add Previous Occurrence';
|
|
1611
1615
|
const Copy$1 = 'Copy';
|
|
1616
|
+
const CopyEditorIntoNewWindow = 'Copy Editor into New Window';
|
|
1612
1617
|
const CopyLineDown = 'Copy Line Down';
|
|
1613
1618
|
const CopyLineUp = 'Copy Line Up';
|
|
1614
1619
|
const Cut$1 = 'Cut';
|
|
@@ -1616,13 +1621,25 @@ const DuplicateSelection = 'Duplicate Selection';
|
|
|
1616
1621
|
const ExpandSelection = 'Expand Selection';
|
|
1617
1622
|
const MoveLineDown = 'Move Line Down';
|
|
1618
1623
|
const MoveLineUp = 'Move Line Up';
|
|
1624
|
+
const MoveEditorIntoNewWindow = 'Move Editor into New Window';
|
|
1619
1625
|
const Paste$1 = 'Paste';
|
|
1620
1626
|
const Redo$1 = 'Redo';
|
|
1621
1627
|
const SelectAll$1 = 'Select All';
|
|
1622
1628
|
const SelectAllOccurrences = 'Select All Occurrences';
|
|
1623
1629
|
const ShrinkSelection = 'Shrink Selection';
|
|
1630
|
+
const Single = 'Single';
|
|
1631
|
+
const SplitDown = 'Split Down';
|
|
1632
|
+
const SplitLeft = 'Split Left';
|
|
1633
|
+
const SplitRight = 'Split Right';
|
|
1634
|
+
const SplitUp = 'Split Up';
|
|
1635
|
+
const ThreeColumns = 'Three Columns';
|
|
1636
|
+
const ThreeRows = 'Three Rows';
|
|
1624
1637
|
const ToggleBlockComment = 'Toggle Block Comment';
|
|
1625
1638
|
const ToggleLineComment = 'Toggle Line Comment';
|
|
1639
|
+
const TwoColumns = 'Two Columns';
|
|
1640
|
+
const TwoColumnsBottom = 'Two Columns Bottom';
|
|
1641
|
+
const TwoRows = 'Two Rows';
|
|
1642
|
+
const TwoRowsRight = 'Two Rows Right';
|
|
1626
1643
|
const Undo$1 = 'Undo';
|
|
1627
1644
|
|
|
1628
1645
|
const file = () => {
|
|
@@ -1637,6 +1654,9 @@ const selection = () => {
|
|
|
1637
1654
|
const view = () => {
|
|
1638
1655
|
return i18nString(View$1);
|
|
1639
1656
|
};
|
|
1657
|
+
const fullScreen = () => {
|
|
1658
|
+
return i18nString(FullScreen);
|
|
1659
|
+
};
|
|
1640
1660
|
const go = () => {
|
|
1641
1661
|
return i18nString(Go$1);
|
|
1642
1662
|
};
|
|
@@ -1857,8 +1877,10 @@ const getMenuEntriesTitleBarContextMenu = async state => {
|
|
|
1857
1877
|
const MenuIdTitleBarContextMenu = 50;
|
|
1858
1878
|
const MenuIdAppearance = 'appearance';
|
|
1859
1879
|
const MenuIdEditorLayout = 'editorLayout';
|
|
1880
|
+
const MenuIdSwitchEditor = 'switchEditor';
|
|
1881
|
+
const MenuIdSwitchGroup = 'switchGroup';
|
|
1860
1882
|
const getMenuIds = () => {
|
|
1861
|
-
return [Edit$2, File$3, Go$2, Help$3, OpenRecent$1, Run$2, Selection$2, Terminal$2, TitleBar$3, View$2, MenuIdTitleBarContextMenu, TitleBarContextMenu];
|
|
1883
|
+
return [Edit$2, File$3, Go$2, Help$3, OpenRecent$1, Run$2, Selection$2, Terminal$2, TitleBar$3, View$2, MenuIdAppearance, MenuIdEditorLayout, MenuIdSwitchEditor, MenuIdSwitchGroup, MenuIdTitleBarContextMenu, TitleBarContextMenu];
|
|
1862
1884
|
};
|
|
1863
1885
|
|
|
1864
1886
|
const hasActiveTextEditor = async mainAreaUid => {
|
|
@@ -1869,8 +1891,53 @@ const hasActiveTextEditor = async mainAreaUid => {
|
|
|
1869
1891
|
}
|
|
1870
1892
|
};
|
|
1871
1893
|
|
|
1894
|
+
const menuEntrySeparator = {
|
|
1895
|
+
command: '',
|
|
1896
|
+
flags: Separator$1,
|
|
1897
|
+
id: 'separator',
|
|
1898
|
+
label: ''
|
|
1899
|
+
};
|
|
1900
|
+
|
|
1901
|
+
const notImplementedArgs$1 = [{
|
|
1902
|
+
message: 'not implemented'
|
|
1903
|
+
}];
|
|
1904
|
+
const entry = (id, label, keyboardShortCut = '') => {
|
|
1905
|
+
return {
|
|
1906
|
+
args: notImplementedArgs$1,
|
|
1907
|
+
command: 'Dialog.showMessage',
|
|
1908
|
+
flags: None,
|
|
1909
|
+
id,
|
|
1910
|
+
keyboardShortCut,
|
|
1911
|
+
label
|
|
1912
|
+
};
|
|
1913
|
+
};
|
|
1914
|
+
const checkedEntry = (id, label, keyboardShortCut = '') => {
|
|
1915
|
+
return {
|
|
1916
|
+
args: notImplementedArgs$1,
|
|
1917
|
+
command: 'Dialog.showMessage',
|
|
1918
|
+
flags: Checked,
|
|
1919
|
+
id,
|
|
1920
|
+
keyboardShortCut,
|
|
1921
|
+
label
|
|
1922
|
+
};
|
|
1923
|
+
};
|
|
1924
|
+
const commandEntry = (id, label, command, keyboardShortCut = '', flags = None) => {
|
|
1925
|
+
return {
|
|
1926
|
+
command,
|
|
1927
|
+
flags,
|
|
1928
|
+
id,
|
|
1929
|
+
keyboardShortCut,
|
|
1930
|
+
label
|
|
1931
|
+
};
|
|
1932
|
+
};
|
|
1872
1933
|
const getMenuEntries$e = () => {
|
|
1873
|
-
return [
|
|
1934
|
+
return [{
|
|
1935
|
+
command: 'Window.toggleFullScreen',
|
|
1936
|
+
flags: None,
|
|
1937
|
+
id: 'fullScreen',
|
|
1938
|
+
keyboardShortCut: 'F11',
|
|
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, entry('zoomIn', 'Zoom In', 'Ctrl+='), entry('zoomOut', 'Zoom Out', 'Ctrl+-'), entry('resetZoom', 'Reset Zoom', 'Ctrl+NumPad0')];
|
|
1874
1941
|
};
|
|
1875
1942
|
|
|
1876
1943
|
const cut = () => {
|
|
@@ -1937,13 +2004,6 @@ const selectAllOccurrences = () => {
|
|
|
1937
2004
|
return i18nString(SelectAllOccurrences);
|
|
1938
2005
|
};
|
|
1939
2006
|
|
|
1940
|
-
const menuEntrySeparator = {
|
|
1941
|
-
command: '',
|
|
1942
|
-
flags: Separator$1,
|
|
1943
|
-
id: 'separator',
|
|
1944
|
-
label: ''
|
|
1945
|
-
};
|
|
1946
|
-
|
|
1947
2007
|
const getMenuEntries$d = () => {
|
|
1948
2008
|
return [{
|
|
1949
2009
|
command: /* TODO */'-1',
|
|
@@ -1984,7 +2044,85 @@ const getMenuEntries$d = () => {
|
|
|
1984
2044
|
};
|
|
1985
2045
|
|
|
1986
2046
|
const getMenuEntries$c = () => {
|
|
1987
|
-
return [
|
|
2047
|
+
return [{
|
|
2048
|
+
command: 'MainArea.splitUp',
|
|
2049
|
+
flags: None,
|
|
2050
|
+
id: 'splitUp',
|
|
2051
|
+
keyboardShortCut: 'Ctrl+K Ctrl+\\',
|
|
2052
|
+
label: i18nString(SplitUp)
|
|
2053
|
+
}, {
|
|
2054
|
+
command: 'MainArea.splitDown',
|
|
2055
|
+
flags: None,
|
|
2056
|
+
id: 'splitDown',
|
|
2057
|
+
label: i18nString(SplitDown)
|
|
2058
|
+
}, {
|
|
2059
|
+
command: 'MainArea.splitLeft',
|
|
2060
|
+
flags: None,
|
|
2061
|
+
id: 'splitLeft',
|
|
2062
|
+
label: i18nString(SplitLeft)
|
|
2063
|
+
}, {
|
|
2064
|
+
command: 'MainArea.splitRight',
|
|
2065
|
+
flags: None,
|
|
2066
|
+
id: 'splitRight',
|
|
2067
|
+
label: i18nString(SplitRight)
|
|
2068
|
+
}, menuEntrySeparator, {
|
|
2069
|
+
command: 'MainArea.moveIntoNewWindow',
|
|
2070
|
+
flags: None,
|
|
2071
|
+
id: 'moveEditorIntoNewWindow',
|
|
2072
|
+
label: i18nString(MoveEditorIntoNewWindow)
|
|
2073
|
+
}, {
|
|
2074
|
+
command: 'MainArea.copyIntoNewWindow',
|
|
2075
|
+
flags: None,
|
|
2076
|
+
id: 'copyEditorIntoNewWindow',
|
|
2077
|
+
keyboardShortCut: 'Ctrl+K O',
|
|
2078
|
+
label: i18nString(CopyEditorIntoNewWindow)
|
|
2079
|
+
}, menuEntrySeparator, {
|
|
2080
|
+
command: 'MainArea.setEditorLayoutSingle',
|
|
2081
|
+
flags: None,
|
|
2082
|
+
id: 'single',
|
|
2083
|
+
label: i18nString(Single)
|
|
2084
|
+
}, {
|
|
2085
|
+
command: 'MainArea.setEditorLayoutTwoColumns',
|
|
2086
|
+
flags: None,
|
|
2087
|
+
id: 'twoColumns',
|
|
2088
|
+
label: i18nString(TwoColumns)
|
|
2089
|
+
}, {
|
|
2090
|
+
command: 'MainArea.setEditorLayoutThreeColumns',
|
|
2091
|
+
flags: None,
|
|
2092
|
+
id: 'threeColumns',
|
|
2093
|
+
label: i18nString(ThreeColumns)
|
|
2094
|
+
}, {
|
|
2095
|
+
command: 'MainArea.setEditorLayoutTwoRows',
|
|
2096
|
+
flags: None,
|
|
2097
|
+
id: 'twoRows',
|
|
2098
|
+
label: i18nString(TwoRows)
|
|
2099
|
+
}, {
|
|
2100
|
+
command: 'MainArea.setEditorLayoutThreeRows',
|
|
2101
|
+
flags: None,
|
|
2102
|
+
id: 'threeRows',
|
|
2103
|
+
label: i18nString(ThreeRows)
|
|
2104
|
+
}, {
|
|
2105
|
+
command: 'MainArea.setEditorLayoutGrid',
|
|
2106
|
+
flags: None,
|
|
2107
|
+
id: 'gridTwoByTwo',
|
|
2108
|
+
label: i18nString(GridTwoByTwo)
|
|
2109
|
+
}, {
|
|
2110
|
+
command: 'MainArea.setEditorLayoutTwoRowsRight',
|
|
2111
|
+
flags: None,
|
|
2112
|
+
id: 'twoRowsRight',
|
|
2113
|
+
label: i18nString(TwoRowsRight)
|
|
2114
|
+
}, {
|
|
2115
|
+
command: 'MainArea.setEditorLayoutTwoColumnsBottom',
|
|
2116
|
+
flags: None,
|
|
2117
|
+
id: 'twoColumnsBottom',
|
|
2118
|
+
label: i18nString(TwoColumnsBottom)
|
|
2119
|
+
}, menuEntrySeparator, {
|
|
2120
|
+
command: 'MainArea.flipEditorLayout',
|
|
2121
|
+
flags: None,
|
|
2122
|
+
id: 'flipLayout',
|
|
2123
|
+
keyboardShortCut: 'Shift+Alt+8',
|
|
2124
|
+
label: i18nString(FlipLayout)
|
|
2125
|
+
}];
|
|
1988
2126
|
};
|
|
1989
2127
|
|
|
1990
2128
|
/**
|
|
@@ -2110,10 +2248,45 @@ const getMenuEntries$b = async (platform, autoSave$1, hasActiveTextEditor = fals
|
|
|
2110
2248
|
return entries;
|
|
2111
2249
|
};
|
|
2112
2250
|
|
|
2251
|
+
const notImplementedMessage = {
|
|
2252
|
+
message: 'Not implemented'
|
|
2253
|
+
};
|
|
2254
|
+
const notImplementedArgs = [notImplementedMessage, ['OK']];
|
|
2255
|
+
const notImplementedEntry = (id, label, keyboardShortCut) => {
|
|
2256
|
+
return {
|
|
2257
|
+
args: notImplementedArgs,
|
|
2258
|
+
command: 'Dialog.showMessage',
|
|
2259
|
+
flags: None,
|
|
2260
|
+
id,
|
|
2261
|
+
...(keyboardShortCut && {
|
|
2262
|
+
keyboardShortCut
|
|
2263
|
+
}),
|
|
2264
|
+
label
|
|
2265
|
+
};
|
|
2266
|
+
};
|
|
2113
2267
|
const getMenuEntries$a = () => {
|
|
2114
|
-
return [
|
|
2268
|
+
return [notImplementedEntry('back', 'Back'), notImplementedEntry('forward', 'Forward'), notImplementedEntry('lastEditLocation', 'Last Edit Location'), menuEntrySeparator, {
|
|
2269
|
+
command: '',
|
|
2270
|
+
flags: SubMenu$1,
|
|
2271
|
+
id: MenuIdSwitchEditor,
|
|
2272
|
+
label: 'Switch Editor'
|
|
2273
|
+
}, {
|
|
2274
|
+
command: '',
|
|
2275
|
+
flags: SubMenu$1,
|
|
2276
|
+
id: MenuIdSwitchGroup,
|
|
2277
|
+
label: 'Switch Group'
|
|
2278
|
+
}, menuEntrySeparator, notImplementedEntry('goToFile', 'Go to File...'), notImplementedEntry('goToSymbolInWorkspace', 'Go to Symbol in Workspace...'), menuEntrySeparator, notImplementedEntry('goToSymbolInEditor', 'Go to Symbol in Editor...'), notImplementedEntry('goToDefinition', 'Go to Definition'), notImplementedEntry('goToDeclaration', 'Go to Declaration'), notImplementedEntry('goToTypeDefinition', 'Go to Type Definition'), notImplementedEntry('goToImplementations', 'Go to Implementations'), notImplementedEntry('goToReferences', 'Go to References'), menuEntrySeparator, notImplementedEntry('goToLineColumn', 'Go to Line/Column...'), notImplementedEntry('goToBracket', 'Go to Bracket'), menuEntrySeparator, notImplementedEntry('nextProblem', 'Next Problem'), notImplementedEntry('previousProblem', 'Previous Problem'), menuEntrySeparator, notImplementedEntry('nextChange', 'Next Change'), notImplementedEntry('previousChange', 'Previous Change')];
|
|
2279
|
+
};
|
|
2280
|
+
const getMenuEntriesSwitchEditor = () => {
|
|
2281
|
+
return [notImplementedEntry('nextEditor', 'Next Editor', 'Ctrl+PageDown'), notImplementedEntry('previousEditor', 'Previous Editor', 'Ctrl+PageUp'), menuEntrySeparator, notImplementedEntry('nextUsedEditor', 'Next Used Editor'), notImplementedEntry('previousUsedEditor', 'Previous Used Editor'), menuEntrySeparator, notImplementedEntry('nextEditorInGroup', 'Next Editor in Group', 'Ctrl+K Ctrl+PageDown'), notImplementedEntry('previousEditorInGroup', 'Previous Editor in Group', 'Ctrl+K Ctrl+PageUp'), notImplementedEntry('nextUsedEditorInGroup', 'Next Used Editor in Group'), notImplementedEntry('previousUsedEditorInGroup', 'Previous Used Editor in Group')];
|
|
2282
|
+
};
|
|
2283
|
+
const getMenuEntriesSwitchGroup = () => {
|
|
2284
|
+
return [notImplementedEntry('nextGroup', 'Next Group'), notImplementedEntry('previousGroup', 'Previous Group'), menuEntrySeparator, notImplementedEntry('groupOne', 'Group 1'), notImplementedEntry('groupTwo', 'Group 2'), notImplementedEntry('groupThree', 'Group 3'), notImplementedEntry('groupFour', 'Group 4'), notImplementedEntry('groupFive', 'Group 5'), notImplementedEntry('lastGroup', 'Last Group')];
|
|
2115
2285
|
};
|
|
2116
2286
|
|
|
2287
|
+
const showAllCommands = () => {
|
|
2288
|
+
return i18nString(ShowAllCommands);
|
|
2289
|
+
};
|
|
2117
2290
|
const toggleDeveloperTools = () => {
|
|
2118
2291
|
return i18nString(ToggleDeveloperTools);
|
|
2119
2292
|
};
|
|
@@ -2125,9 +2298,14 @@ const about = () => {
|
|
|
2125
2298
|
};
|
|
2126
2299
|
|
|
2127
2300
|
const getMenuEntries$9 = async platform => {
|
|
2128
|
-
const entries = [
|
|
2301
|
+
const entries = [{
|
|
2302
|
+
command: 'QuickPick.showCommands',
|
|
2303
|
+
flags: None,
|
|
2304
|
+
id: 'showAllCommands',
|
|
2305
|
+
label: showAllCommands()
|
|
2306
|
+
}];
|
|
2129
2307
|
if (platform !== Web) {
|
|
2130
|
-
entries.push({
|
|
2308
|
+
entries.push(menuEntrySeparator, {
|
|
2131
2309
|
command: 'Developer.toggleDeveloperTools',
|
|
2132
2310
|
flags: None,
|
|
2133
2311
|
id: 'toggleDeveloperTools',
|
|
@@ -2548,6 +2726,12 @@ const getMenuEntries2 = async (state, props) => {
|
|
|
2548
2726
|
// @ts-ignore
|
|
2549
2727
|
case MenuIdEditorLayout:
|
|
2550
2728
|
return getMenuEntries$c();
|
|
2729
|
+
// @ts-ignore
|
|
2730
|
+
case MenuIdSwitchEditor:
|
|
2731
|
+
return getMenuEntriesSwitchEditor();
|
|
2732
|
+
// @ts-ignore
|
|
2733
|
+
case MenuIdSwitchGroup:
|
|
2734
|
+
return getMenuEntriesSwitchGroup();
|
|
2551
2735
|
default:
|
|
2552
2736
|
return [];
|
|
2553
2737
|
}
|
|
@@ -2582,6 +2766,7 @@ const Copy = 'copy';
|
|
|
2582
2766
|
const Paste = 'paste';
|
|
2583
2767
|
const SelectAll = 'selectAll';
|
|
2584
2768
|
const ToggleDevTools = 'toggleDevTools';
|
|
2769
|
+
const Togglefullscreen = 'togglefullscreen';
|
|
2585
2770
|
const Help = 'help';
|
|
2586
2771
|
const Quit = 'quit';
|
|
2587
2772
|
const FileMenu = 'fileMenu';
|
|
@@ -2620,6 +2805,11 @@ const toElectronMenuItem = entry => {
|
|
|
2620
2805
|
role: FileMenu,
|
|
2621
2806
|
submenu: []
|
|
2622
2807
|
};
|
|
2808
|
+
case fullScreen():
|
|
2809
|
+
return {
|
|
2810
|
+
label: entry.label,
|
|
2811
|
+
role: Togglefullscreen
|
|
2812
|
+
};
|
|
2623
2813
|
case help():
|
|
2624
2814
|
return {
|
|
2625
2815
|
label: entry.label,
|
|
@@ -3330,6 +3520,25 @@ const loadContent2 = async state => {
|
|
|
3330
3520
|
};
|
|
3331
3521
|
};
|
|
3332
3522
|
|
|
3523
|
+
const loadContent2Command = async uid => {
|
|
3524
|
+
const {
|
|
3525
|
+
newState
|
|
3526
|
+
} = get(uid);
|
|
3527
|
+
const loadedState = await loadContent2(newState);
|
|
3528
|
+
const latest = get(uid);
|
|
3529
|
+
const nextState = latest.newState.workspaceUri === newState.workspaceUri ? {
|
|
3530
|
+
...latest.newState,
|
|
3531
|
+
...loadedState
|
|
3532
|
+
} : {
|
|
3533
|
+
...latest.newState,
|
|
3534
|
+
...loadedState,
|
|
3535
|
+
title: latest.newState.title,
|
|
3536
|
+
titleWidth: latest.newState.titleWidth,
|
|
3537
|
+
workspaceUri: latest.newState.workspaceUri
|
|
3538
|
+
};
|
|
3539
|
+
set(uid, latest.oldState, nextState, nextState);
|
|
3540
|
+
};
|
|
3541
|
+
|
|
3333
3542
|
const renderFocusContext = (oldState, newState) => {
|
|
3334
3543
|
const {
|
|
3335
3544
|
uid
|
|
@@ -4156,6 +4365,10 @@ const getFn = id => {
|
|
|
4156
4365
|
return getMenuEntries$e;
|
|
4157
4366
|
case MenuIdEditorLayout:
|
|
4158
4367
|
return getMenuEntries$c;
|
|
4368
|
+
case MenuIdSwitchEditor:
|
|
4369
|
+
return getMenuEntriesSwitchEditor;
|
|
4370
|
+
case MenuIdSwitchGroup:
|
|
4371
|
+
return getMenuEntriesSwitchGroup;
|
|
4159
4372
|
default:
|
|
4160
4373
|
return undefined;
|
|
4161
4374
|
}
|
|
@@ -4384,6 +4597,8 @@ const handleMenuClick = async (state, level, index) => {
|
|
|
4384
4597
|
return state;
|
|
4385
4598
|
}
|
|
4386
4599
|
switch (item.flags) {
|
|
4600
|
+
case Checked:
|
|
4601
|
+
return selectIndexNone(state, item);
|
|
4387
4602
|
case Ignore:
|
|
4388
4603
|
return selectIndexIgnore(state, item);
|
|
4389
4604
|
case None:
|
|
@@ -4392,6 +4607,8 @@ const handleMenuClick = async (state, level, index) => {
|
|
|
4392
4607
|
return selectIndexRestoreFocus(state, item);
|
|
4393
4608
|
case SubMenu$1:
|
|
4394
4609
|
return selectIndexSubMenu(state, menu, index);
|
|
4610
|
+
case Unchecked:
|
|
4611
|
+
return selectIndexNone(state, item);
|
|
4395
4612
|
default:
|
|
4396
4613
|
return state;
|
|
4397
4614
|
}
|
|
@@ -4544,7 +4761,7 @@ const commandMap = {
|
|
|
4544
4761
|
'TitleBar.hideCommandCenter': wrapCommand(hideCommandCenter),
|
|
4545
4762
|
'TitleBar.hideMenuBar': wrapCommand(hideMenuBar),
|
|
4546
4763
|
'TitleBar.hydrateElectronApplicationMenu': wrapCommand(hydrate),
|
|
4547
|
-
'TitleBar.loadContent2':
|
|
4764
|
+
'TitleBar.loadContent2': loadContent2Command,
|
|
4548
4765
|
'TitleBar.render3': render3,
|
|
4549
4766
|
'TitleBar.renderEventListeners': renderEventListeners,
|
|
4550
4767
|
'TitleBar.resize': wrapCommand(resize),
|