ChatboxTextInput: Select full message on ctrl+a

This commit is contained in:
Jordan Atwood
2021-01-07 14:13:51 -08:00
parent ae18d2a865
commit ed1d47f283

View File

@@ -689,6 +689,11 @@ public class ChatboxTextInput extends ChatboxInput implements KeyListener, Mouse
log.warn("Unable to get clipboard", ex);
}
return;
case KeyEvent.VK_A:
selectionStart = 0;
selectionEnd = value.length();
cursorAt(0, selectionEnd);
return;
}
return;
}