Closed Bug 614289 Opened 15 years ago Closed 15 years ago

Regression: Awesomebar suggestions do not update while typing [HWKB]

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
major

Tracking

(fennec2.0b3+)

VERIFIED FIXED
Tracking Status
fennec 2.0b3+ ---

People

(Reporter: mbrubeck, Assigned: mbrubeck)

References

Details

(Keywords: regression, Whiteboard: [hkb])

Attachments

(1 file, 1 obsolete file)

Steps to reproduce: 1. Open the hardware keyboard. 2. Tap in the awesomebar and start typing. Expected results: Awesomescreen results update as you type. Actual results: Awesomescreen results update only for the first character typed, or whenever you press backspace. Tested on local trunk Android build.
tracking-fennec: --- → ?
tracking-fennec: ? → 2.0b3+
Assignee: nobody → mbrubeck
The "keydown" events are not sent to Gecko, because mKeyListener.onKeyDown returns "true" in GeckoApp::onKeyDown.
(In reply to comment #1) > The "keydown" events are not sent to Gecko, because mKeyListener.onKeyDown > returns "true" in GeckoApp::onKeyDown. Of course, keydown events aren't the only thing that can trigger awesomebar updating. After all, almost no key events are sent when typing with many soft keyboards. The difference is that the text events during softkb composition are sent during composition, while the text events sent through the hardkb listener are sent without composition. Wonder if that makes the difference. Maybe jchen knows.
Attached patch WIP (obsolete) — Splinter Review
mwu suggested starting and stopping coposition to force an update. Here's an implementation of that suggestion. It fixes this bug, but I'm not sure if it's the correct way to do it.
Attached patch patchSplinter Review
Here's a better patch, with much help from jchen. Makes sure that the text event happens between composition begin/end events.
Attachment #493035 - Attachment is obsolete: true
Attachment #493051 - Flags: review?(blassey.bugs)
Attachment #493051 - Flags: review?(blassey.bugs) → review+
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
verified FIXED on build: Mozilla/5.0 (Maemo; Linux armv71; rv:2.0b8pre) Gecko/20101129 Namoroka/4.0b8pre Fennec/4.0b3pre
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: