diff options
author | Ajay <[email protected]> | 2023-09-04 02:37:19 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2023-09-04 02:37:19 -0400 |
commit | 2e131c2a95bf4166fd9692ae2f344eddfd576632 (patch) | |
tree | 60cc204b060b291f7b2851e60651cdf87e05f7d0 | |
parent | f5e884b6aaf89d16e9e325c3103e84a9c1809bc3 (diff) | |
download | SponsorBlock-2e131c2a95bf4166fd9692ae2f344eddfd576632.tar.gz SponsorBlock-2e131c2a95bf4166fd9692ae2f344eddfd576632.zip |
Stop spacebar in chapters box from pausing video
-rw-r--r-- | src/components/SponsorTimeEditComponent.tsx | 2 |
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> |