fixed a timing issue in the keyboard

This commit is contained in:
hneemann 2019-09-23 17:15:57 +02:00
parent ef8add3ff9
commit 0a51558f00

View File

@ -71,7 +71,7 @@ public class Keyboard extends Node implements Element {
enableVal = enable.getBool();
boolean nowClock = clock.getBool();
if (keyboardInterface != null && !nowClock && lastClock && enableVal)
if (keyboardInterface != null && nowClock && !lastClock && enableVal)
keyboardInterface.deleteFirstChar();
lastClock = nowClock;