fix spacebar boost

This commit is contained in:
groknt 2025-11-10 21:53:32 +00:00 committed by GitHub
parent b5b53a90f5
commit b33f54e960
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -174,6 +174,11 @@ export function KeyboardEvents() {
!dataRef.current.isInWatchParty &&
dataRef.current.enableHoldToBoost
) {
// Skip if it's a repeated event
if (evt.repeat) {
return;
}
// Skip if a button is targeted
if (
evt.target &&
@ -234,6 +239,11 @@ export function KeyboardEvents() {
k === " " &&
(!dataRef.current.enableHoldToBoost || dataRef.current.isInWatchParty)
) {
// Skip if it's a repeated event
if (evt.repeat) {
return;
}
// Skip if a button is targeted
if (
evt.target &&