Closed Bug 646589 Opened 13 years ago Closed 3 years ago

Keycode for shift key in Flash player is wrong.

Categories

(Core Graveyard :: Plug-ins, defect)

2.0 Branch
x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: sheldonl, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0
Build Identifier: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0

When listening for KeyboardEvent.KEY_DOWN event in FF4 in Flash Player (my testing was done with a swf generated with Flex 3.5 sdk) the keyCode property of the generated KeyboardEvent is not equal to the Keyboard.SHIFT constant.

This occurs only on Mac. My testing was done on Mac OS X 10.6 (and various Windows builds, but the windows tests did not have this problem).

Reproducible: Always

Steps to Reproduce:
1. Create simple flex app with a component like a Textinput. Attach a listener for KeybaordEvent.KEY_DOWN event. trace the value of the keyCode property of the generated event.
2. Run app.
3. Press shift key and look at the outputted value for the keyCode property.
Actual Results:  
keyCode property value other than 16 (value of Keyboard.SHIFT constant on my Mac)

Expected Results:  
16 (value of Keybaord.SHIFT on my Mac).
bug 616177, bug 641077, bug 638993 could be related
Component: General → Plug-ins
Product: Firefox → Core
QA Contact: general → plugins
Version: unspecified → 2.0 Branch

Flash is no longer supported.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.