aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2023-09-04 02:37:19 -0400
committerAjay <[email protected]>2023-09-04 02:37:19 -0400
commit2e131c2a95bf4166fd9692ae2f344eddfd576632 (patch)
tree60cc204b060b291f7b2851e60651cdf87e05f7d0
parentf5e884b6aaf89d16e9e325c3103e84a9c1809bc3 (diff)
downloadSponsorBlock-2e131c2a95bf4166fd9692ae2f344eddfd576632.tar.gz
SponsorBlock-2e131c2a95bf4166fd9692ae2f344eddfd576632.zip
Stop spacebar in chapters box from pausing video
-rw-r--r--src/components/SponsorTimeEditComponent.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/SponsorTimeEditComponent.tsx b/src/components/SponsorTimeEditComponent.tsx
index 4f0f656d..15f265ee 100644
--- a/src/components/SponsorTimeEditComponent.tsx
+++ b/src/components/SponsorTimeEditComponent.tsx
@@ -138,6 +138,8 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
type="text"
style={{color: "inherit", backgroundColor: "inherit"}}
value={this.state.sponsorTimeEdits[0]}
+ onKeyDown={(e) => e.stopPropagation()}
+ onKeyUp={(e) => e.stopPropagation()}
onChange={(e) => this.handleOnChange(0, e, sponsorTime, e.target.value)}
onWheel={(e) => this.changeTimesWhenScrolling(0, e, sponsorTime)}>
</input>