keyEventWasInInput() function added.

This commit is contained in:
PeekabooSteam
2023-04-04 15:51:11 +01:00
parent ff20eec472
commit 6ffcb76f03
3 changed files with 16 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ import { FeatureSwitches } from "./featureswitches";
import { LogPanel } from "./panels/logpanel";
import { getAirbases, getBullseye as getBullseyes, getConfig, getMission, getUnits, setAddress, toggleDemoEnabled } from "./server/server";
import { UnitDataTable } from "./units/unitdatatable";
import { keyEventWasInInput } from "./other/utils";
var map: Map;
@@ -167,6 +168,10 @@ function setupEvents() {
/* Keyup events */
document.addEventListener("keyup", ev => {
if ( keyEventWasInInput( ev ) ) {
return;
}
switch (ev.code) {