Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion main/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -827,8 +827,10 @@ function initializeApp() {
exportCode(workspace);
});
KeyboardDispatcher.on('*', 'Mod+KeyP', (e) => {
// Documented in the Shortcuts panel as Play (accessibility/keyboardui.js);
// match the visible Play button exactly, including restarting a running scene.
e.preventDefault();
document.getElementById('renderCanvas')?.focus({ preventScroll: true });
void executeCode();
});
KeyboardDispatcher.on('*', 'Mod+Slash', (e) => {
e.preventDefault();
Expand Down
6 changes: 6 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,12 @@ button {
display: block;
}

/* Override the generic .icon brand colour so this icon stays white,
matching the button's own colour, on the dark translucent backdrop. */
.canvas-stopped-overlay__play .icon {
color: inherit;
}

.canvas-stopped-overlay__play:hover,
.canvas-stopped-overlay__play:focus-visible {
transform: scale(1.08);
Expand Down
Loading