mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2024-12-22 05:06:57 +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")
|
|
}
|
|
})
|