aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components
diff options
context:
space:
mode:
authorAjay <[email protected]>2023-09-13 11:40:56 -0400
committerAjay <[email protected]>2023-09-13 11:40:56 -0400
commit30a21d5ff5beb4e74a446644cf2a89d779921369 (patch)
tree6771bdb8b6686f9a8533a6511755b6a270d4cc58 /src/components
parentd1b2def47c33c96781ff36153b7c8e39d3b9f219 (diff)
downloadSponsorBlock-30a21d5ff5beb4e74a446644cf2a89d779921369.tar.gz
SponsorBlock-30a21d5ff5beb4e74a446644cf2a89d779921369.zip
Actually stop spacebar in chapters box from pausing video
Diffstat (limited to 'src/components')
-rw-r--r--src/components/SponsorTimeEditComponent.tsx4
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})}>