Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): Mac
Affected OS(s): Mac OS 10.6
Browser: Safari
Language Found: English
Description
Steps to reproduce:
1. On the stage object add an event handler for Keybaord.KEY_DOWN
2. Check if event.ctrlKey == true, if true trace(event.keyCode + " " + event.keyLocation + " " + event.charCode)
3. Run the SWF and press Ctrl (or Command) X or C or V, then press Ctrl (or Command) B (something not caught by the browser)
Actual Results:
Ctrl (or Command, which ever depending on your OS) X C or V will give a keyCode of 4294967295, with a charCode of 0 and a keyLocation of 0
Ctrl B will give keyCode 66, char code 90, key location 0 <-- this is okay, it at least reports something meaningful
Expected Results:
Ctrl (or Command) should give a meaningful keyCode, not a 32bit int overflow.
Workaround (if any):
None, tried to use ExternalInterface and javascript to handle Ctrl key downs, but flash player seemed to interfere with the browser receiving the event.