mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2024-11-10 02:27:29 +00:00
Don't prevent Alt+⬅️/Alt+➡️ navigation hotkeys
Anything with the alt key is now ignored and untouched.
This commit is contained in:
parent
e279fca60e
commit
b58f1515eb
@ -197,7 +197,7 @@ video.addEventListener("dblclick", event => {
|
|||||||
|
|
||||||
document.addEventListener("keydown", event => {
|
document.addEventListener("keydown", event => {
|
||||||
if (["INPUT", "SELECT", "BUTTON"].includes(event.target.tagName)) return
|
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
|
let caught = true
|
||||||
if (event.key === "j" || event.key === "n") {
|
if (event.key === "j" || event.key === "n") {
|
||||||
relativeSeek(-10)
|
relativeSeek(-10)
|
||||||
|
Loading…
Reference in New Issue
Block a user