1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-11-25 17:07:30 +00:00

Do not override up/down arrow keys

This commit is contained in:
Cadence Ember 2021-02-19 00:52:43 +13:00
parent 6186be0a13
commit 7fee8b21bc
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17

View File

@ -209,8 +209,6 @@ document.addEventListener("keydown", event => {
relativeSeek(-5) relativeSeek(-5)
} else if (event.key === "ArrowRight") { } else if (event.key === "ArrowRight") {
relativeSeek(5) relativeSeek(5)
} else if (event.key === "ArrowUp" || event.key === "ArrowDown") {
// no-op
} else if (event.key >= "0" && event.key <= "9") { } else if (event.key >= "0" && event.key <= "9") {
video.currentTime = video.duration * (+event.key) / 10 video.currentTime = video.duration * (+event.key) / 10
} else if (event.key === "f") { } else if (event.key === "f") {