projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some style improvements
[vchess.git]
/
client
/
src
/
main.js
diff --git
a/client/src/main.js
b/client/src/main.js
index
56c6492
..
f1e23cb
100644
(file)
--- a/
client/src/main.js
+++ b/
client/src/main.js
@@
-12,7
+12,16
@@
new Vue({
},
created: function() {
window.doClick = (elemId) => { document.getElementById(elemId).click() };
},
created: function() {
window.doClick = (elemId) => { document.getElementById(elemId).click() };
+ document.addEventListener("keydown", (e) => {
+ if (e.code === "Escape")
+ {
+ let modalBoxes = document.querySelectorAll("[id^='modal']");
+ modalBoxes.forEach(m => {
+ if (m.checked && m.id != "modalWelcome")
+ m.checked = false;
+ });
+ }
+ });
store.initialize();
store.initialize();
- // NOTE: at this point, variants and tr(anslations) might be uninitialized
},
}).$mount("#app");
},
}).$mount("#app");