Fix navigate next keybind not working.

Closes #2784
This commit is contained in:
Kavin 2023-08-07 19:45:54 +01:00
parent fb99dbdc0a
commit 981133ebd0
No known key found for this signature in database
GPG key ID: 6E4598CA5C92C41F
2 changed files with 3 additions and 2 deletions

View file

@ -57,7 +57,7 @@ export default {
selectedAutoLoop: Boolean,
isEmbed: Boolean,
},
emits: ["timeupdate", "ended"],
emits: ["timeupdate", "ended", "navigateNext"],
data() {
return {
lastUpdate: new Date().getTime(),
@ -191,7 +191,7 @@ export default {
e.preventDefault();
break;
case "shift+n":
self.navigateNext();
self.$emit("navigateNext");
e.preventDefault();
break;
case "shift+,":

View file

@ -29,6 +29,7 @@
:selected-auto-loop="selectedAutoLoop"
@timeupdate="onTimeUpdate"
@ended="onVideoEnded"
@navigate-next="navigateNext"
/>
</keep-alive>
<ChaptersBar