Removed global documentCreated

This commit is contained in:
unsettledgames
2021-07-23 19:05:33 +02:00
parent 404b1c56c1
commit da7ae65ead
8 changed files with 17 additions and 16 deletions

View File

@ -61,7 +61,7 @@ const Input = (() => {
//if no document has been created yet,
//orthere is a dialog box open
//ignore hotkeys
if (!documentCreated || Dialogue.isOpen()) return;
if (!Startup.documentCreated() || Dialogue.isOpen()) return;
//
if (e.key === "Escape") {