Skip to content

Commit e8d231a

Browse files
committed
added dev tools
1 parent 7d531ab commit e8d231a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Components/FakeMenu.wlx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ LayoutView = ExportString[{
5353
<|"label"->"Clear outputs", "name"->"clearoutputs", "a"->"Alt+u"|>,
5454
<|"type"->"separator"|>,
5555
<|"label"->"Zoom in", "name"->"zoomIn"|>,
56-
<|"label"->"Zoom out", "name"->"zoomOut"|>
56+
<|"label"->"Zoom out", "name"->"zoomOut"|>,
57+
<|"type"->"separator"|>,
58+
<|"label"->"Dev Tools", "name"->"devTools"|>
5759
}
5860

5961
} // Flatten, "JSON"]

Electron/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,10 @@ callFakeMenu["zoomIn"] = () => {
980980
windows.focused.call('zoomIn', true);
981981
}
982982

983+
callFakeMenu["devTools"] = () => {
984+
windows.focused.win.webContents.openDevTools()
985+
}
986+
983987
callFakeMenu["zoomOut"] = () => {
984988
windows.focused.call('zoomOut', true);
985989
}

0 commit comments

Comments
 (0)