fix debug mode crash sometimes occurring when deleting korean

fixes GH-1551
This commit is contained in:
Helium314 2025-05-10 17:37:20 +02:00
parent 549675d8d7
commit e6ec1c7bca
2 changed files with 12 additions and 0 deletions

View file

@ -160,6 +160,16 @@ class InputLogicTest {
assertEquals("ㅛ.", text)
}
// see issue 1551 (debug only)
@Test fun deleteHangul() {
reset()
currentScript = ScriptUtils.SCRIPT_HANGUL
setText("ㅛㅛ ")
functionalKeyPress(KeyCode.DELETE)
functionalKeyPress(KeyCode.DELETE)
functionalKeyPress(KeyCode.DELETE)
}
@Test fun separatorUnselectsWord() {
reset()
setText("hello")