Steps to reproduce:
1. Create a Flex application:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="appComplete()">
<mx:Script>
<![CDATA[
private function appComplete():void
{
ta.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown, true);
}
private function onKeyDown(event:KeyboardEvent):void
{
trace(event);
}
]]>
</mx:Script>
<mx:TextArea x="100" y="50" height="200" id="ta"/>
</mx:Application>
2. Run the application in Internet Explorer. I use IE7.
3. Type some characters. Use the key combination Ctrl-A to select all text. Then take a look at the trace output.
Actual Results:
The last traced line is:
[KeyboardEvent type="keyDown" bubbles=true cancelable=false eventPhase=1 charCode=0 keyCode=17 keyLocation=1 ctrlKey=true altKey=false shiftKey=false]
Expected Results:
That the last traced line would be:
[KeyboardEvent type="keyDown" bubbles=true cancelable=false eventPhase=1 charCode=97 keyCode=65 keyLocation=0 ctrlKey=true altKey=false shiftKey=false]
Workaround (if any):
* Use another browser than Internet Explorer. I have tested in Firefox and Safari on Windows Vista and in both cases I get the expected result. It seems that this bug is specific to the Flash Player plugin for IE.
* Alternatively, if the surrounding code can work that way, listen for the KEY_UP event instead of the KEY_DOWN event.
Additional notes:
Adding the event listener to the stage instead of the TextArea does not produce any different result.
http://bugs.adobe.com/jira/browse/FP-106