1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-09-19 18:57:30 +00:00

Don't prevent Alt+⬅️/Alt+➡️ navigation hotkeys

Anything with the alt key is now ignored and untouched.
This commit is contained in:
Cadence Ember 2021-02-12 00:46:56 +13:00
parent e279fca60e
commit b58f1515eb
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17

View File

@ -197,7 +197,7 @@ video.addEventListener("dblclick", event => {
document.addEventListener("keydown", event => {
if (["INPUT", "SELECT", "BUTTON"].includes(event.target.tagName)) return
if (event.ctrlKey || event.shiftKey) return
if (event.ctrlKey || event.shiftKey || event.altKey) return
let caught = true
if (event.key === "j" || event.key === "n") {
relativeSeek(-10)