We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2617

Summary: Composing words with chinese input method in iOS will receive SDL_TEXTINPUT events
Product: SDL Reporter: dudu <hellodudu86>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: 10774497
Version: 2.0.3   
Hardware: iPhone/iPod touch   
OS: iOS (All)   

Description dudu 2014-06-30 04:10:53 UTC
This will not happen in windows while composing words with chinese input method.

For example:
if I need input a chinese word "靠", I should press 3 keys including "k", "a" and "o". In windows, I will receive SDL_TEXTINPUT after composed "kao" and choosed the "靠" word from method.
but in iOS, I received SDL_TEXTINPUT while composing "k" "a" "o", received 3 times.
so I don't know how to deal with this event, because I don't know whether the user is inputting "kao" or "靠".
Comment 1 jimmy 2018-09-06 02:49:58 UTC
(In reply to dudu from comment #0)
> This will not happen in windows while composing words with chinese input
> method.
> 
> For example:
> if I need input a chinese word "靠", I should press 3 keys including "k", "a"
> and "o". In windows, I will receive SDL_TEXTINPUT after composed "kao" and
> choosed the "靠" word from method.
> but in iOS, I received SDL_TEXTINPUT while composing "k" "a" "o", received 3
> times.
> so I don't know how to deal with this event, because I don't know whether
> the user is inputting "kao" or "靠".
Comment 2 jimmy 2018-09-06 02:51:28 UTC
(In reply to dudu from comment #0)
> This will not happen in windows while composing words with chinese input
> method.
> 
> For example:
> if I need input a chinese word "靠", I should press 3 keys including "k", "a"
> and "o". In windows, I will receive SDL_TEXTINPUT after composed "kao" and
> choosed the "靠" word from method.
> but in iOS, I received SDL_TEXTINPUT while composing "k" "a" "o", received 3
> times.
> so I don't know how to deal with this event, because I don't know whether
> the user is inputting "kao" or "靠".

I have the question too...
Comment 3 Ozkan Sezer 2018-09-06 08:41:57 UTC
*** Bug 4251 has been marked as a duplicate of this bug. ***
Comment 4 Ozkan Sezer 2018-09-06 08:44:04 UTC
*** Bug 4252 has been marked as a duplicate of this bug. ***
Comment 5 Ozkan Sezer 2018-09-06 08:47:58 UTC
(In reply to jimmy from comment #2)
> I have the question too...

Creating multiple duplicates doesn't help solving a problem.