Try...
(event.target as TextInput).text = ;
(event.target as TextInput).setFocus();
HTH
Steve
--- In flexcoders@yahoogroups.com, gwangdesign gwangdes...@... wrote:
Hello,
I have a TextInput, say, for user to type in to search something. After the
user presses enter Key, I want the
Try...
(event.target as TextInput).text = ;
(event.target as TextInput).setFocus();
Steve, Thanks for the lead. Unfortunately, it doesn't work, either for the
Gumbo or Halo component.
For mx:TextInput:
The text never gets cleared out after user presses the enter key;
For s:TextInput:
This works for me (I am using Flex 3.3 with Flash Player 9.0.159)
If this is not a player or Gumbo issue, I would look at other things happening
after the enter event.
What happens with a small test case?
--- In flexcoders@yahoogroups.com, gwangdesign gwangdes...@... wrote:
Try...
--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:
This works for me (I am using Flex 3.3 with Flash Player 9.0.159)
If this is not a player or Gumbo issue, I would look at other things
happening after the enter event.
What happens with a small test case?
Steve, Thanks
[mailto:flexcod...@yahoogroups.com] On Behalf
Of gwangdesign
Sent: Monday, June 15, 2009 1:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Clear user text after enter on TextInput (gumbo
and/or moxie)
--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
Please feel free to file bugs for either/both issues at
http://bugs.adobe.com/flex/.
Hi Peter,
I filed a bug on spark textinput. Someone else has filed one on mx:TextInput
(https://bugs.adobe.com/jira/browse/SDK-21617) and provided a workaround which
is similar to the callLater one you
BTW, I am not sure if this behavior is something expected from user
experience point of view since I looked at Google, Yahoo! and Bing, all of
them did the same thing: once you pressed enter, the search textinput lost
focus. You would have to regain focus for the textinput to do another
7 matches
Mail list logo