File tree 1 file changed +15
-7
lines changed
packages/project-editor/store
1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -308,19 +308,22 @@ export class ProjectStore {
308
308
} else {
309
309
this . onSetRuntimeMode ( ) ;
310
310
}
311
+ return false ;
311
312
}
312
313
} else {
313
314
this . onSetRuntimeMode ( ) ;
315
+ return false ;
314
316
}
315
317
}
316
- return false ;
318
+ return true ;
317
319
} ) ;
318
320
319
321
Mousetrap . bind ( "shift+f5" , ( ) => {
320
322
if ( this . runtime ) {
321
323
this . onSetEditorMode ( ) ;
324
+ return false ;
322
325
}
323
- return false ;
326
+ return true ;
324
327
} ) ;
325
328
326
329
Mousetrap . bind ( "ctrl+f5" , ( ) => {
@@ -330,9 +333,10 @@ export class ProjectStore {
330
333
) {
331
334
if ( ! this . runtime || ! this . runtime . isDebuggerActive ) {
332
335
this . onSetDebuggerMode ( ) ;
336
+ return false ;
333
337
}
334
338
}
335
- return false ;
339
+ return true ;
336
340
} ) ;
337
341
338
342
Mousetrap . bind ( "f6" , ( ) => {
@@ -342,8 +346,9 @@ export class ProjectStore {
342
346
! this . runtime . isPaused
343
347
) {
344
348
this . runtime . pause ( ) ;
349
+ return false ;
345
350
}
346
- return false ;
351
+ return true ;
347
352
} ) ;
348
353
349
354
Mousetrap . bind ( "f10" , ( ) => {
@@ -353,8 +358,9 @@ export class ProjectStore {
353
358
this . runtime . isPaused
354
359
) {
355
360
this . runtime . runSingleStep ( "step-over" ) ;
361
+ return false ;
356
362
}
357
- return false ;
363
+ return true ;
358
364
} ) ;
359
365
360
366
Mousetrap . bind ( "f11" , ( ) => {
@@ -364,8 +370,9 @@ export class ProjectStore {
364
370
this . runtime . isPaused
365
371
) {
366
372
this . runtime . runSingleStep ( "step-into" ) ;
373
+ return false ;
367
374
}
368
- return false ;
375
+ return true ;
369
376
} ) ;
370
377
371
378
Mousetrap . bind ( "shift+f11" , ( ) => {
@@ -375,8 +382,9 @@ export class ProjectStore {
375
382
this . runtime . isPaused
376
383
) {
377
384
this . runtime . runSingleStep ( "step-out" ) ;
385
+ return false ;
378
386
}
379
- return false ;
387
+ return true ;
380
388
} ) ;
381
389
}
382
390
You can’t perform that action at this time.
0 commit comments