tabIndexMap.put(tf.getTabIndex(), tf);
// Pass typed key to text processor
} else if (tf.isEnabled() && tf.isFocus()) {
if (tf.getTextProcessor().handleInput(Keyboard.getEventCharacter(), Keyboard.getEventKey())) {
tf.onTextFieldChange();
ScheduledTextFieldUpdate updateThread = null;
if (scheduledTextFieldUpdates.containsKey(tf)) {
updateThread = scheduledTextFieldUpdates.get(tf);
if (updateThread.isAlive()) {
updateThread.delay();
} else {
updateThread.start();
}
} else {
updateThread = new ScheduledTextFieldUpdate(screen, tf);
scheduledTextFieldUpdates.put(tf, updateThread);
updateThread.start();
}
}
handled = true;
break;
}