Closed Bug 720300 Opened 9 years ago Closed 9 years ago
Awesome bar shouldn't start search on Enter key pressed if there is composition string
When there is composition string on awesome bar, if you press "enter key", Fennec native will start search or URL navigation. On stock browser or Fennec XUL, if there is composition string, "enter key" means commiting string. When there is composition string, we should commit text if entry key is pressed.
Assignee: nobody → alexp
tracking-fennec: --- → 11+
Priority: -- → P3
Summary: Awesome bar doesn't start search when Enter key press if there is composition string → Awesome bar shouldn't start search on Enter key pressed if there is composition string
This bug is a side-effect of the fix for bug 705939. The keyboard handling in the Awesomebar is a bit hacky. Due to some internal specifics of the UI controls used for that screen the edit box sometimes loses its focus, and we cannot handle the input properly in some cases. The bug 702995 was filed to investigate this, but there is still no solution. The issues appearing are being patched, but those workarounds may cause other problems, and here's one of such examples. We may try to add another check into onKeyPreIme listener to handle this specific situation here: http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/AwesomeBar.java#168 Though I'm not sure yet if it's possible to check the current composition state.
I think this bug should be a fennec-1.0 blocker because it prevents the user from entering a URL.
Makoto, can you still reproduce this bug? I tested Google Japanese Input method on my Galaxy Nexus and Samsung S2, but I can't reproduce the problem.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
(In reply to Chris Peterson (:cpeterson) from comment #4) > Makoto, can you still reproduce this bug? I tested Google Japanese Input > method on my Galaxy Nexus and Samsung S2, but I can't reproduce the problem. Google Japanese Input doesn't support Hardware keyboard. Try Shimeji or OpenWnn on HTC Desire Z.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Simeji reproduces the issue on any device. cpeterson, if you're in SF Office, I can show you in person.
Don't submit AwesomeBar text when there is an active composition string. This patch generalizes Makato-san's fix for bug 715207 so we can check for a composition string when processing ENTER keydown events. This bug only affects HKB.
oops: Makoto, not "Makato"! <:)
Attachment #608548 - Flags: review?(blassey.bugs) → review+
Attachment #608548 - Flags: review?(m_kato) → review+
checkin-needed for mozilla-central
Comment on attachment 608548 [details] [diff] [review] bug-720300-awesomebar-composition-string.patch [Approval Request Comment] Regression caused by (bug #): bug 705939 User impact if declined: Multibyte text input will not work in AwesomeBar. Testing completed (on m-c, etc.): Risk to taking this patch (and alternatives if risky): AwesomeBar text input. String changes made by this patch: None
Attachment #608548 - Flags: approval-mozilla-aurora?
Comment on attachment 608548 [details] [diff] [review] bug-720300-awesomebar-composition-string.patch [Triage Comment] Mobile only - approved for Aurora 13.
Attachment #608548 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Target Milestone: --- → Firefox 14
Status: REOPENED → RESOLVED
Closed: 9 years ago → 9 years ago
Resolution: --- → FIXED
checkin-needed for mozilla-aurora
Verified fixed on: Firefox 15.0a1 (2012-05-21) Firefox 14.0a2 (2012-05-21) Device: Galaxy Nexus OS: Android 4.0.2
You need to log in before you can comment on or make changes to this bug.