diff options
author | Ajay <[email protected]> | 2023-09-13 11:40:56 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2023-09-13 11:40:56 -0400 |
commit | 30a21d5ff5beb4e74a446644cf2a89d779921369 (patch) | |
tree | 6771bdb8b6686f9a8533a6511755b6a270d4cc58 /src/components/SponsorTimeEditComponent.tsx | |
parent | d1b2def47c33c96781ff36153b7c8e39d3b9f219 (diff) | |
download | SponsorBlock-30a21d5ff5beb4e74a446644cf2a89d779921369.tar.gz SponsorBlock-30a21d5ff5beb4e74a446644cf2a89d779921369.zip |
Actually stop spacebar in chapters box from pausing video
Diffstat (limited to 'src/components/SponsorTimeEditComponent.tsx')
-rw-r--r-- | src/components/SponsorTimeEditComponent.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/SponsorTimeEditComponent.tsx b/src/components/SponsorTimeEditComponent.tsx index 15f265ee..801e8952 100644 --- a/src/components/SponsorTimeEditComponent.tsx +++ b/src/components/SponsorTimeEditComponent.tsx @@ -155,6 +155,8 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo type="text" style={{color: "inherit", backgroundColor: "inherit"}} value={this.state.sponsorTimeEdits[1]} + onKeyDown={(e) => e.stopPropagation()} + onKeyUp={(e) => e.stopPropagation()} onChange={(e) => this.handleOnChange(1, e, sponsorTime, e.target.value)} onWheel={(e) => this.changeTimesWhenScrolling(1, e, sponsorTime)}> </input> @@ -240,6 +242,8 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo ref={this.descriptionOptionRef} type="text" value={this.state.description} + onKeyDown={(e) => e.stopPropagation()} + onKeyUp={(e) => e.stopPropagation()} onContextMenu={(e) => e.stopPropagation()} onChange={(e) => this.descriptionUpdate(e.target.value)} onFocus={() => this.setState({chapterNameSelectorOpen: true})}> |