Skip to content

Commit f6787d6

Browse files
committed
1 parent f6ac006 commit f6787d6

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

packages/project-editor/store/index.ts

+15-7
Original file line numberDiff line numberDiff line change
@@ -308,19 +308,22 @@ export class ProjectStore {
308308
} else {
309309
this.onSetRuntimeMode();
310310
}
311+
return false;
311312
}
312313
} else {
313314
this.onSetRuntimeMode();
315+
return false;
314316
}
315317
}
316-
return false;
318+
return true;
317319
});
318320

319321
Mousetrap.bind("shift+f5", () => {
320322
if (this.runtime) {
321323
this.onSetEditorMode();
324+
return false;
322325
}
323-
return false;
326+
return true;
324327
});
325328

326329
Mousetrap.bind("ctrl+f5", () => {
@@ -330,9 +333,10 @@ export class ProjectStore {
330333
) {
331334
if (!this.runtime || !this.runtime.isDebuggerActive) {
332335
this.onSetDebuggerMode();
336+
return false;
333337
}
334338
}
335-
return false;
339+
return true;
336340
});
337341

338342
Mousetrap.bind("f6", () => {
@@ -342,8 +346,9 @@ export class ProjectStore {
342346
!this.runtime.isPaused
343347
) {
344348
this.runtime.pause();
349+
return false;
345350
}
346-
return false;
351+
return true;
347352
});
348353

349354
Mousetrap.bind("f10", () => {
@@ -353,8 +358,9 @@ export class ProjectStore {
353358
this.runtime.isPaused
354359
) {
355360
this.runtime.runSingleStep("step-over");
361+
return false;
356362
}
357-
return false;
363+
return true;
358364
});
359365

360366
Mousetrap.bind("f11", () => {
@@ -364,8 +370,9 @@ export class ProjectStore {
364370
this.runtime.isPaused
365371
) {
366372
this.runtime.runSingleStep("step-into");
373+
return false;
367374
}
368-
return false;
375+
return true;
369376
});
370377

371378
Mousetrap.bind("shift+f11", () => {
@@ -375,8 +382,9 @@ export class ProjectStore {
375382
this.runtime.isPaused
376383
) {
377384
this.runtime.runSingleStep("step-out");
385+
return false;
378386
}
379-
return false;
387+
return true;
380388
});
381389
}
382390

0 commit comments

Comments
 (0)