diff --git a/main/main.js b/main/main.js index 1c605f05..cbcb7bb4 100644 --- a/main/main.js +++ b/main/main.js @@ -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(); diff --git a/style.css b/style.css index cea438fa..6c7f1b63 100644 --- a/style.css +++ b/style.css @@ -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);