mirror of
https://github.com/p-stream/p-stream.git
synced 2026-01-11 20:10:32 +00:00
Merge branch 'pr/63' into production
This commit is contained in:
commit
62772b6bd6
1 changed files with 10 additions and 0 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue