mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2024-11-25 17:07:30 +00:00
12 lines
269 B
JavaScript
12 lines
269 B
JavaScript
document.body.classList.remove("show-focus")
|
|
|
|
document.addEventListener("mousedown", () => {
|
|
document.body.classList.remove("show-focus")
|
|
})
|
|
|
|
document.addEventListener("keydown", event => {
|
|
if (event.key === "Tab") {
|
|
document.body.classList.add("show-focus")
|
|
}
|
|
})
|