if (parent.keyboardFocusedActor == this) {
if (character == 8 && (cursor > 0 || hasSelection)) {
if (!hasSelection) {
text = text.substring(0, cursor - 1) + text.substring(cursor);
cursor--;
font.computeGlyphAdvancesAndPositions(text, glyphAdvances, glyphPositions);
} else {
int minIndex = Math.min(cursor, selectionStart);
int maxIndex = Math.max(cursor, selectionStart);
text = (minIndex > 0 ? text.substring(0, minIndex) : "")