mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2024-11-14 04:17:29 +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")
|
|
}
|
|
})
|