Closed Bug 1253426 Opened 9 years ago Closed 9 years ago

When Fennec is brought to the foreground, soft keyboard needs to be restored if it was previously visible

Categories

(Firefox for Android Graveyard :: Keyboards and IME, defect)

defect
Not set
normal

Tracking

(firefox47 verified)

VERIFIED FIXED
Firefox 47
Tracking Status
firefox47 --- verified

People

(Reporter: rbarker, Assigned: rbarker)

References

Details

Attachments

(1 file, 3 obsolete files)

When Fennec is sent to the background with the keyboard visible. The keyboard will automatically hide when Fennec is brought to the foreground again. The keyboard state should be restored so that it is visible once Fennec is brought to the foreground.
Assignee: nobody → rbarker
Attachment #8726420 - Flags: review?(snorp)
Blocks: 1241332
Comment on attachment 8726420 [details] [diff] [review] 0001-Bug-1253426-When-Fennec-is-brought-to-the-foreground-soft-keyboard-needs-to-be-restored-if-it-was-previously-visible-r-16030313-7d0706b.patch Review of attachment 8726420 [details] [diff] [review]: ----------------------------------------------------------------- I feel like some of this only adds to the pain of a transition to a multi-window world with the addition of stuff to GeckoAppShell. If you handled the 'application-foreground' in nsWindow and then just called restoreIMEState() on the GV from there I think it would be cleaner. Less Java code to write too :) ::: mobile/android/base/java/org/mozilla/gecko/GeckoApplication.java @@ +116,5 @@ > GeckoAppShell.sendEventToGecko(GeckoEvent.createAppForegroundingEvent()); > mPausedGecko = false; > } > > + GeckoAppShell.foregroundApp(); I'd rather not add more stuff to GeckoApplication if we can avoid it. I notice right above is where we send the 'application-foreground' event, though, so I guess this is about the same. Blah.
Attachment #8726420 - Flags: review?(snorp) → review-
Attachment #8726491 - Flags: review?(snorp)
Comment on attachment 8726491 [details] [diff] [review] 0001-Bug-1253426-When-Fennec-is-brought-to-the-foreground-soft-keyboard-needs-to-be-restored-if-it-was-previously-visible-r-16030316-d9b77ad.patch Review of attachment 8726491 [details] [diff] [review]: ----------------------------------------------------------------- ::: mobile/android/base/java/org/mozilla/gecko/GeckoInputConnection.java @@ +585,5 @@ > Editable editable = getEditable(); > outAttrs.initialSelStart = Selection.getSelectionStart(editable); > outAttrs.initialSelEnd = Selection.getSelectionEnd(editable); > + > + if (!GeckoApplication.get().isApplicationInBackground()) { Another thing we'll have to untangle if we want to run without GeckoApplication, but...alright I guess?
Attachment #8726491 - Flags: review?(snorp) → review+
Updated patch so that it would work with multiple GeckoViews.
Attachment #8726491 - Attachment is obsolete: true
Attachment #8726842 - Flags: review?(snorp)
Attachment #8726842 - Flags: review?(snorp) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 47
Tested using: Device: Huawei Honor (Android 5.1.1) Build: Firefox for Android Beta - 47.0b6
Depends on: 1283739
I'll mark this bug as verified fixed since it is verified.
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: