Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Jan 16, 2025
1 parent f6ac006 commit f6787d6
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions packages/project-editor/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,19 +308,22 @@ export class ProjectStore {
} else {
this.onSetRuntimeMode();
}
return false;
}
} else {
this.onSetRuntimeMode();
return false;
}
}
return false;
return true;
});

Mousetrap.bind("shift+f5", () => {
if (this.runtime) {
this.onSetEditorMode();
return false;
}
return false;
return true;
});

Mousetrap.bind("ctrl+f5", () => {
Expand All @@ -330,9 +333,10 @@ export class ProjectStore {
) {
if (!this.runtime || !this.runtime.isDebuggerActive) {
this.onSetDebuggerMode();
return false;
}
}
return false;
return true;
});

Mousetrap.bind("f6", () => {
Expand All @@ -342,8 +346,9 @@ export class ProjectStore {
!this.runtime.isPaused
) {
this.runtime.pause();
return false;
}
return false;
return true;
});

Mousetrap.bind("f10", () => {
Expand All @@ -353,8 +358,9 @@ export class ProjectStore {
this.runtime.isPaused
) {
this.runtime.runSingleStep("step-over");
return false;
}
return false;
return true;
});

Mousetrap.bind("f11", () => {
Expand All @@ -364,8 +370,9 @@ export class ProjectStore {
this.runtime.isPaused
) {
this.runtime.runSingleStep("step-into");
return false;
}
return false;
return true;
});

Mousetrap.bind("shift+f11", () => {
Expand All @@ -375,8 +382,9 @@ export class ProjectStore {
this.runtime.isPaused
) {
this.runtime.runSingleStep("step-out");
return false;
}
return false;
return true;
});
}

Expand Down

0 comments on commit f6787d6

Please sign in to comment.