Added back copy / paste

This commit is contained in:
unsettledgames
2021-11-09 22:59:17 +01:00
parent 73f7c980eb
commit cd6d959d35
3 changed files with 56 additions and 18 deletions

View File

@@ -75,11 +75,9 @@ const Input = (() => {
//if no document has been created yet or there is a dialog box open ignore hotkeys
if (!Startup.documentCreated() || Dialogue.isOpen()) return;
//
if (e.key === "Escape") {
if (!selectionCanceled) {
tool.pencil.switchTo();
}
console.log("esc");
Events.emit("esc-pressed");
}
else {
switch (keyboardEvent.keyCode) {