04-23-2013 05:37 PM
I am trying to do auto completion in a class that extends PromptDialog:
Firstly, it seems we don't get any KeyboardEvents (e.g. KeyUp).
So, I switched to Event.CHANGE:
In the Event.CHANGE handler, when I detect the trigger, I'm trying to append some text to PromptDialog.text or PromptDialog.promptInput.text but neither appears in the dialog.
Can someone please indicate the proper approach?
Solved! Go to Solution.
09-11-2013 03:05 PM
Using latest SDK 3.2.1 on simulator running 10.2 and on Z10 LE running 10.1:
in the Event.CHANGE handler,
setting text via text += string, or via promptInput.replaceText
Although it worked in earlier releases, the prompt input text now doesn't get updated.
Any suggestions greatly appreciated.
09-12-2013 08:38 AM
actually, setting text on initialization works fine - as long as you don't then clear it in the caller fn... doh
I suspect that setting the text in the CHANGE handler is messed up because of some other auto magic on the TextInput...
setting spellCheck=false didn't help.