mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
markers - statues
This commit is contained in:
parent
98bed4c091
commit
c12507e336
2 changed files with 39 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ function handleKeyup(event) {
|
|||
const {tagName, contentEditable} = document.activeElement;
|
||||
if (["INPUT", "SELECT", "TEXTAREA"].includes(tagName)) return; // don't trigger if user inputs text
|
||||
if (tagName === "DIV" && contentEditable === "true") return; // don't trigger if user inputs a text
|
||||
if (document.getSelection().toString()) return; // don't trigger if user selects text
|
||||
event.stopPropagation();
|
||||
|
||||
const {ctrlKey, metaKey, shiftKey, altKey} = event;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue