History | Log In     View a printable version of the current page.  
Issue Details (XML)

Key: FP-118
Type: Bug Bug
Status: Resolved Resolved
Resolution: Duplicate
Priority: None None
Assignee: Trevor McCauley
Reporter: Oskar Fjellstrom
Votes: 10
Watchers: 8
Operations

If you were logged in you would be able to see more operations.
Flash Player

KEY_DOWN event does not fire for certain key combinations in Internet Explorer

Created: 04/17/08 03:39 AM   Updated: 09/25/08 06:22 PM
Component/s: ActionScript Events
Security Level: Public (All JIRA Users )

Severity: Incorrectly Functioning
Reproducibility: Every Time
Discoverability: Low
Found in Version: Flash Player 9 - 9_0_124_0
Milestone: Flash Player 9
Affected OS(s): Windows - Vista
Injection: No
Steps to Reproduce:
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.
 
 
Language Found: English
Bugbase Id: none
Triaged: Yes
Resolved by: Trevor McCauley
Participants: Andriy Panas, Jeremy Olsen, Oskar Fjellstrom and Trevor McCauley
Browser: Internet Explorer 7.x


 All   Comments      Sort Order:
Andriy Panas - [05/07/08 03:38 PM ]
I've logged earlier before the similar issue into Flash player JIRA bug-database:
http://bugs.adobe.com/jira/browse/FP-106

Jeremy Olsen - [07/14/08 01:47 PM ]
Very annoying. This has been around for a while. Any chance this will get into FP10?