Disabled script area textbox typing when a matching keycode KeyPreset is down

This commit is contained in:
bigguy345 committed 2026-01-03 14:49:05 +02:00
1 parent c4d5178472
commit 85d79dd786
2 files changed
+16 -3

No files matched your search

@@ -24,6 +24,15 @@ public class KeyPresetManager {
return preset;
}
public boolean hasMatchingKeyPressed(int keyCode) {
for (KeyPreset key : keys) {
if (key.currentState.matches(keyCode, true))
return true;
}
return false;
}
public void tick() {
for (KeyPreset key : keys)
key.tick();