summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/common/play.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/public/common/play.js b/public/common/play.js
index bb3c5ae..ba8c647 100644
--- a/public/common/play.js
+++ b/public/common/play.js
@@ -589,8 +589,9 @@ function zoom_map() {
window.addEventListener("resize", zoom_map)
window.addEventListener("keydown", (evt) => {
- if (evt.key === "Shift")
- document.querySelector("body").classList.add("shift")
+ if (document.activeElement === document.querySelector("body"))
+ if (evt.key === "Shift")
+ document.querySelector("body").classList.add("shift")
})
window.addEventListener("keyup", (evt) => {