From 6cb4fac0418f91d2a549b278bf34990d0d2dc641 Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 10 Jul 2022 01:58:39 -0400 Subject: [PATCH] Add hotkeys for skipping to next and previous chapter --- public/_locales/en/messages.json | 8 ++++++ public/options/options.html | 10 ++++++++ src/config.ts | 4 +++ src/content.ts | 44 +++++++++++++++++++++++++++++--- 4 files changed, 63 insertions(+), 3 deletions(-) diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index c1b27a43..29902ccb 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -299,6 +299,14 @@ "message": "Submit segments", "description": "Keybind label" }, + "nextChapterKeybind": { + "message": "Next chapter", + "description": "Keybind label" + }, + "previousChapterKeybind": { + "message": "Previous chapter", + "description": "Keybind label" + }, "keybindDescription": { "message": "Select a key by typing it and choose any modifier keys you wish to use." }, diff --git a/public/options/options.html b/public/options/options.html index eab43198..45a84b75 100644 --- a/public/options/options.html +++ b/public/options/options.html @@ -345,6 +345,16 @@
+
+ +
+
+ +
+ +
+
+