iOS Question Keyboard problem with my language

susu

Well-Known Member
Licensed User
Longtime User
Hi,

I use this code to get value of text field with keyboard:

Code: Copy
Sub txtSearch_TextChanged (OldText As String, NewText As String)
        searchstring = NewText.Trim
        Log(searchstring)
End Sub

If I type "t" + "u" + "s" the text in text field display "tú" but the value in log is "tus". If I add a space, the value in log will be correct ("tú").

How can I get correct value as display in text field? Thanks.
 
Last edited:
I see it too. However this event is raised by the native UITextField with this value so it seems like a bug in the native layer.

Workaround:
Code: Copy
Sub TextField1_TextChanged (OldText As String, NewText As String)
   CallSubDelayed(Me, "CheckText")
End Sub

Sub CheckText
   Log(TextField1.Text)
End Sub
 
Upvote 0
Thanks Erel but your workaround did not work on iOS 7.1.2
 
Upvote 0
I tried with a timer and it worked!
 
Upvote 0
Back
Top