From 58d503636324b29269957410e060571e387c24b9 Mon Sep 17 00:00:00 2001 From: Ajay Date: Fri, 22 Dec 2023 13:04:28 -0500 Subject: [PATCH] Make unskipping by keybind easier for multiple segment notices by focusing by default Clicking tab will focus the next button allowing you to unskip the next segment --- src/components/SkipNoticeComponent.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/components/SkipNoticeComponent.tsx b/src/components/SkipNoticeComponent.tsx index 7487bdc5..f571035e 100644 --- a/src/components/SkipNoticeComponent.tsx +++ b/src/components/SkipNoticeComponent.tsx @@ -388,6 +388,7 @@ class SkipNoticeComponent extends React.Component this.performAction(i)} + autoFocus={i == 0} key={"submission" + i + this.segments[i].category + this.idSuffix}> {`${(i + 1)}. ${chrome.i18n.getMessage("category_" + this.segments[i].category)} (${getFormattedTime(this.segments[i].segment[0])})`} @@ -459,6 +460,15 @@ class SkipNoticeComponent extends React.Component