mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-04-24 10:11:05 +00:00
Fixed hotkey crash
This commit is contained in:
parent
7f24c52a4f
commit
9570acb5e3
4 changed files with 5 additions and 4 deletions
js
|
@ -305,9 +305,9 @@ ctrlDown = false
|
|||
|
||||
document.onkeydown = function (e) {
|
||||
if (player === undefined) return;
|
||||
if (gameEnded && !player.keepGoing) return;
|
||||
shiftDown = e.shiftKey
|
||||
ctrlDown = e.ctrlKey
|
||||
if (tmp.gameEnded && !player.keepGoing) return;
|
||||
let key = e.key
|
||||
if (ctrlDown) key = "ctrl+" + key
|
||||
if (onFocused) return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue