Closed
Bug 951021
Opened 11 years ago
Closed 11 years ago
nsWindow of Android should set modifier state at dispatching events derived from WidgetInputEvent
Categories
(Core Graveyard :: Widget: Android, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla29
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(1 file)
8.85 KB,
patch
|
jchen
:
review+
|
Details | Diff | Splinter Review |
nsWindow of Android doesn't set modifiers correctly. Let's set them as far as possible.
Assignee | ||
Comment 1•11 years ago
|
||
This only fixes the events dispatched from nsWindow. Looks like there are other paths, though. Chrome JS generates some keyboard/mouse events? Then, we need more work for them, but it should be out of scope of this bug. On Android, I'm not sure how to know if AltGr key is pressed. I tested on Android 4.4, Alt modifier isn't set at native key press event which causes text input. So, for such key events, we cannot know if right Alt key is pressed. Additionally, we cannot set AltGr flag even if right Alt key is pressed at other key events because right Alt key isn't AltGr on a lot of keyboard layouts. tryserver build: https://tbpl.mozilla.org/?tree=Try&usebuildbot=1&rev=abc25dea3d3d
Attachment #8348505 -
Flags: review?(nchen)
Assignee | ||
Comment 2•11 years ago
|
||
test pages: https://dvcs.w3.org/hg/d4e/raw-file/tip/key-event-test.html https://bugzilla.mozilla.org/attachment.cgi?id=640488
Comment 3•11 years ago
|
||
Comment on attachment 8348505 [details] [diff] [review] Patch Review of attachment 8348505 [details] [diff] [review]: ----------------------------------------------------------------- LGTM ::: widget/android/nsWindow.cpp @@ +1617,5 @@ > + // don't specify extra modifiers. If UnicodeChar() != BaseUnicodeChar() > + // it means UnicodeChar() already has modifiers applied. > + // XXX On Android 4.4, Alt modifier isn't set when the key input causes > + // text input even while right Alt key is pressed. Do we really need > + // this code? This code is for Android 2.3 (Gingerbread) compatibility. Can you change the comment to say "for Android 2.3 compatibility"?
Attachment #8348505 -
Flags: review?(nchen) → review+
Assignee | ||
Comment 4•11 years ago
|
||
Thank you for the information and your review! https://hg.mozilla.org/integration/mozilla-inbound/rev/40e241eed25e
Comment 5•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/40e241eed25e
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•