Closed
Bug 561234
Opened 14 years ago
Closed 14 years ago
QGraphicsWidget::keyPressEvent has an error that makes us invert case when typing
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: MikeK, Assigned: dougt)
Details
Attachments
(2 files)
936 bytes,
patch
|
dougt
:
review+
|
Details | Diff | Splinter Review |
1.05 KB,
patch
|
MikeK
:
review+
|
Details | Diff | Splinter Review |
You need to hold down the shift key to get lower case letters, and release it to get upper case letters (with Fennec running on a Qt 4.6).
Reporter | ||
Comment 1•14 years ago
|
||
The temporary fix makes us react on key release instead of key press, since the key release events have valid data (the key press event has invalid data).
Attachment #440915 -
Flags: review?(dougt)
Assignee | ||
Comment 2•14 years ago
|
||
Comment on attachment 440915 [details] [diff] [review] Temporary workaround thanks!
Attachment #440915 -
Flags: review?(dougt) → review+
Reporter | ||
Updated•14 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 3•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/27d44d82781f leaving open because it be nice to fix this for real.
Reporter | ||
Comment 4•14 years ago
|
||
This is also being tracked in the maemo bug system under bug no. 165779
Comment 5•14 years ago
|
||
I looked into this and it breaks the thing for us completely. Can you please revert to the old version and encapsulate the solution into a MOZ_PLATFORM_MAEMO=5 define?
Assignee | ||
Comment 6•14 years ago
|
||
probably a good idea. any idea why it is busted on maemo 5?
Comment 7•14 years ago
|
||
Mhm I don't think its a qt bug, I think it must be wrong within whatever handle the keyboard in the system and create the x-events send to the QApplication.
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 9•14 years ago
|
||
Looks good that way. Thanks
Reporter | ||
Updated•14 years ago
|
Attachment #441712 -
Flags: review?(mkristoffersen)
Reporter | ||
Updated•14 years ago
|
Attachment #441712 -
Flags: review?(mkristoffersen) → review+
Comment 10•14 years ago
|
||
We looked a bit more into this issue, also because of #562195. The real issue on Maemo5 looks like to be the QInputMethod provided by some Maemo5 QtStyle. This seems to break the KeyEvents. You could try to start Fennec with -style windows and see if this makes a difference for you. Just a thought, maybe the solution from #562195 makes a difference in this issue too, or maybe it can help you to solve this issue.
Comment 11•14 years ago
|
||
To expand a bit on that: On Maemo5 the QHildonInputContext which seems to mess up the events is not added via a style or plugin, but instead compiled directly into the Qt version for Maemo5. So it is not easy to circumvent without losing the virtual keyboard functionality. One option might be to filter events early, store needed information and use that when the messed up event reaches the MozQWidget. Or just wait for Qt ond Maemo5 to get fixed :-) Bug #562195 seems (at least to me) completely unrelated, because here (#561234) the System/Qt events are already broken, while in #562195 the problem is the creation of the DOM keyevent inside our code, which behaves differently than the GTK version.
Assignee | ||
Comment 12•14 years ago
|
||
I don't mind disabling the software keyboard completely and waiting for Qt and Maemo5 to get fixed. steffen, can you put together a patch for such a thing?
Assignee | ||
Updated•14 years ago
|
Component: Linux/Maemo → General
OS: Linux → Linux (embedded)
Hardware: x86 → ARM
Assignee | ||
Comment 13•14 years ago
|
||
steffen, update?
Comment 14•14 years ago
|
||
I'm using now patch https://bugzilla.mozilla.org/attachment.cgi?id=441712, which is not in m-c now... is anything prevent us to push this patch to upstream?
Comment 15•14 years ago
|
||
I think ifdef maemo5 should be just ok for now.
Assignee | ||
Comment 16•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/c113774394ae
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•