Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS TextField, Korean characters are not normally entered #3101

Closed
YongIseul opened this issue Apr 24, 2023 · 4 comments · Fixed by JetBrains/compose-multiplatform-core#718
Closed
Assignees
Labels
bug Something isn't working input Touch, mouse, keyboard input related ios text

Comments

@YongIseul
Copy link

YongIseul commented Apr 24, 2023

Describe the bug
Korean characters are not normally entered in the TextField of iOS.

Affected platforms

  • iOS

Versions

  • Kotlin version*: 1.8.20
  • Compose Multiplatform version*: 1.4.0
  • OS version(s)* (required for Desktop and iOS issues): 16.4
  • OS architecture (x86 or arm64): arm64

To Reproduce

source code

   MaterialTheme {
        Column {
            Text("OS: ${getPlatformName()}")
            Text("typing sequence : ㄱ, ㅏ, ㅇ, ㄴ, ㅏ, ㅁ, ㅇ, ㅕ, ㄱ")
            Text("Expected result : 강남역")
            var text by remember { mutableStateOf(TextFieldValue()) }
            TextField(text, onValueChange = { text = it })
        }
    }

Type on the keyboard in the order of ㄱ, ㅏ, ㅇ, ㄴ, ㅏ, ㅁ, ㅇ, ㅕ, ㄱ in Korean

Expected behavior
Like the Android on the left, "강남역" should be displayed in the TextField.

Screenshots

textfield_hangul.mp4
@YongIseul YongIseul added bug Something isn't working submitted labels Apr 24, 2023
@eymar eymar added the input Touch, mouse, keyboard input related label Apr 25, 2023
@dima-avdeev-jb dima-avdeev-jb changed the title Korean characters are not normally entered in the TextField of iOS. iOS Korean characters are not normally entered in the TextField Jun 18, 2023
@dima-avdeev-jb dima-avdeev-jb changed the title iOS Korean characters are not normally entered in the TextField iOS TextField, Korean characters are not normally entered Jun 19, 2023
@paxbun
Copy link
Contributor

paxbun commented Jul 27, 2023

For those who are not used to the Korean writing system, please refer to this Wikipedia page.

With physical keyboards, 초성 (the initial) and 중성 (the medial) input works well, but 종성 (the final) and diphthong (e.g., ㅟ -> ㅜㅣ) input is divided.

Expected: 다람쥐헌쳇바퀴
Actual: 다라ㅁ주ㅣ허ㄴ체ㅅ바쿠ㅣ

RPReplay_Final1690427240.MP4

I think this and #3416 share the same cause; Chinese input should have a similar issue. It seems not.

@dima-avdeev-jb
Copy link
Contributor

Thanks for such a create description!

@dima-avdeev-jb
Copy link
Contributor

Will be available in next dev build of Compose for iOS

@paxbun
Copy link
Contributor

paxbun commented Feb 5, 2024

It seems this issue happens again on iOS 17 simulators (not on iOS 16 simulators and iOS 16 & 17 physical devices), but this happens even in system default apps like Safari right now.

For those who still have the same problem, it would not be the issue of Compose. Please test with physical devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working input Touch, mouse, keyboard input related ios text
Projects
None yet
4 participants