B4J Question Textfield and keyPress

positrom2

Active Member
Licensed User
Longtime User
Oracle documentation says:
The action handler is normally called when the user types the ENTER key.
Doesn't seem like that. The event "txtfield_TextChanged (Old As String, New As String)" is raised as soon as the text has been changed, without the ENTER key to be pressed. This is nasty since when I want to enter a two-digit number (or larger) the event fires with the first digit. Therefore, I have to take care of this by
B4X:
txtfield_TextChanged (Old As String, New As String)
If New<10 Then Return
.
 
Upvote 0
Top