[flexcoders] Re: Turn all keyboard input into upper-case for all TextInput and TextArea

2009-03-12 Thread per.olesen
For the record. Someone provided me the solution i show below directly by email: /** * Runs on change converting all text to upper case */ private function changeHandlerToUpper(event:Event):void{ event.target.text = event.target.text.toUpperCase(); } which works fine.

[flexcoders] Re: Turn all keyboard input into upper-case for all TextInput and TextArea

2009-03-11 Thread per.olesen
--- In flexcoders@yahoogroups.com, Gordon Smith gosm...@... wrote: In a handler for the 'textInput' event, set event.text = event.text.toUpperCase(). The 'textInput' event is dispatched after the text has been typed (or converted by an IME) but before it has been inserted into the

[flexcoders] Re: Turn all keyboard input into upper-case for all TextInput and TextArea

2009-03-10 Thread per.olesen
--- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2...@... wrote: Is this anything of help? capsLock property capsLock:Boolean [read-only] Specifies whether the Caps Lock key is activated (true) or not (false). If you refer to the static read-only property of

[flexcoders] Re: Turn all keyboard input into upper-case for all TextInput and TextArea

2009-03-10 Thread per.olesen
--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Unfortunately, the text controls don't use events as input events, but dispatch them as notifications instead, so you can't fake events to them. Okay, that explains why dispatching KeyboardEvent on TextField and TextEvent on

RE: [flexcoders] Re: Turn all keyboard input into upper-case for all TextInput and TextArea

2009-03-10 Thread Gordon Smith
In a handler for the 'textInput' event, set event.text = event.text.toUpperCase(). The 'textInput' event is dispatched after the text has been typed (or converted by an IME) but before it has been inserted into the TextField. The 'change' event is dispatched after the text has been inserted.

[flexcoders] Re: Turn all keyboard input into upper-case for all TextInput and TextArea

2009-03-09 Thread markgoldin_2000
Is this anything of help? capsLock property capsLock:Boolean [read-only] Specifies whether the Caps Lock key is activated (true) or not (false). --- In flexcoders@yahoogroups.com, per.olesen per.ole...@... wrote: I need to automatically turn all keyboard input in all TextInput and