@@ -55,7 +55,6 @@ function redo() {
55
55
mainWindow . webContents . send ( 'redo' ) ;
56
56
}
57
57
58
-
59
58
function toggleTutorial ( ) {
60
59
mainWindow . webContents . send ( 'tutorial_clicked' ) ;
61
60
}
@@ -122,16 +121,17 @@ const createWindow = () => {
122
121
{
123
122
label : 'Edit' ,
124
123
submenu : [
125
- {
124
+ {
126
125
label : 'Undo' ,
127
- accelerator : process . platform === 'darwin' ? 'Cmd+Z' : 'Ctrl+Z' , //these hotkeys are a tad bit glitchy
126
+ accelerator : process . platform === 'darwin' ? 'Cmd+Z' : 'Ctrl+Z' , //these hotkeys are a tad bit glitchy
128
127
click ( ) {
129
128
undo ( ) ;
130
129
}
131
130
} ,
132
- {
131
+ {
133
132
label : 'Redo' ,
134
- accelerator : process . platform === 'darwin' ? 'Cmd+Shift+Z' : 'Ctrl+Shift+Z' ,
133
+ accelerator :
134
+ process . platform === 'darwin' ? 'Cmd+Shift+Z' : 'Ctrl+Shift+Z' ,
135
135
click ( ) {
136
136
redo ( ) ;
137
137
}
@@ -142,8 +142,8 @@ const createWindow = () => {
142
142
{ role : 'paste' } ,
143
143
{ role : 'pasteandmatchstyle' } ,
144
144
{ role : 'delete' } ,
145
- { role : 'selectall' } ,
146
- ] ,
145
+ { role : 'selectall' }
146
+ ]
147
147
} ,
148
148
{
149
149
label : 'View' ,
@@ -172,9 +172,9 @@ const createWindow = () => {
172
172
}
173
173
} ,
174
174
{
175
- label : 'Tutorial' ,
176
- click ( ) {
177
- toggleTutorial ( ) ;
175
+ label : 'Tutorial' ,
176
+ click ( ) {
177
+ toggleTutorial ( ) ;
178
178
}
179
179
}
180
180
]
@@ -242,10 +242,11 @@ const createWindow = () => {
242
242
mainWindow = null ;
243
243
} ) ;
244
244
245
+ // UNCOMMENT THIS DURING DEVELOPMENT TO ENABLE CONSOLE TO OPEN UPON LAUNCH
245
246
// dev tools opened on every browser creation
246
- mainWindow . webContents . once ( 'dom-ready' , ( ) => {
247
- mainWindow . webContents . openDevTools ( ) ;
248
- } ) ;
247
+ // mainWindow.webContents.once('dom-ready', () => {
248
+ // mainWindow.webContents.openDevTools();
249
+ // });
249
250
} ;
250
251
251
252
// This method will be called when Electron has finished
@@ -269,7 +270,7 @@ app.on('ready', () => {
269
270
}
270
271
globalShortcut . register ( 'Escape' , ( ) => {
271
272
escape ( ) ;
272
- } )
273
+ } ) ;
273
274
} ) ;
274
275
275
276
// Quit when all windows are closed.
0 commit comments