Skip to content

Commit 26be0e3

Browse files
authored
Synchronize Stop Button State with Space Key Playback (#5512)
This PR fixes a UI state inconsistency where the Stop button failed to update its visual state (turning red) when music playback was initiated using the Space key.
1 parent 05a98de commit 26be0e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/activity.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3409,6 +3409,10 @@ class Activity {
34093409
this._doHardStopButton();
34103410
} else if (!disableKeys && !hasOpenWidget) {
34113411
event.preventDefault();
3412+
const stopbtn = document.getElementById("stop");
3413+
if (stopbtn) {
3414+
stopbtn.style.color = platformColor.stopIconcolor;
3415+
}
34123416
this._doFastButton();
34133417
}
34143418
} else if (!disableKeys) {

0 commit comments

Comments
 (0)