I added a new listener into TextField component to listen Enter key (as I
haven't found one except text change); If this helps, Carlos.

Initially I tried to add a Function type of field in TextField component
(i.e. public var enter:Function;), but I had many unknown problems setting
the field value from the owner component. 

Thus, I ended by dispatching an event:

> // inside createElement() of TextField.as
> ..
> goog.events.listen(input, "keypress", function(a:BrowserEvent):void 
> {
>       // enter key
>       if(a.keyCode == 13) {
>               dispatchEvent(new Event("enter"));
>       }
> });
> ..

This worked for me at least. 



--
View this message in context: 
http://apache-flex-development.2333347.n4.nabble.com/Re-git-commit-flex-asjs-refs-heads-develop-MDL-Table-component-and-example-initial-implementation-tp58260p58705.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to