Closed Bug 875457 Opened 12 years ago Closed 12 years ago

[sms] when showing the attachment options, we should blur from the input to hide the keyboard

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:leo+, b2g18 verified)

RESOLVED FIXED
blocking-b2g leo+
Tracking Status
b2g18 --- verified

People

(Reporter: julienw, Assigned: gnarf)

References

Details

Attachments

(2 files, 3 obsolete files)

Attached image screenshot (deleted) —
STR: * start a new message * attach an image * tap on the input to enter some text * tap on the image to display the attachment menu Expected: * we display the menu without the keyboard Actual: * we have the keyboard, and the display is broken see screenshot
Assignee: nobody → gnarf37
Attached patch patch v1 (obsolete) (deleted) — Splinter Review
Try as I might - I couldn't figure out how to force something to get focus in the suite so I could write a unit test for this.
Attachment #753430 - Flags: review?(felash)
Attached patch patch v2 (obsolete) (deleted) — Splinter Review
Now with a more sane approach, and tested
Attachment #753430 - Attachment is obsolete: true
Attachment #753430 - Flags: review?(felash)
Attachment #753444 - Flags: review?(felash)
Attached patch patch v3 (obsolete) (deleted) — Splinter Review
Attachment #753455 - Flags: review?(felash)
Attachment #753444 - Attachment is obsolete: true
Attachment #753444 - Flags: review?(felash)
Attached patch patch v4 (deleted) — Splinter Review
tabindex + focus on main element + after the element is shown = no more keyboard
Attachment #753455 - Attachment is obsolete: true
Attachment #753455 - Flags: review?(felash)
Attachment #753462 - Flags: review?(felash)
Status: NEW → ASSIGNED
Comment on attachment 753462 [details] [diff] [review] patch v4 Review of attachment 753462 [details] [diff] [review]: ----------------------------------------------------------------- on a side note, vivien told me we are supposed to support the HTML5 contextmenu attribute and that we could try to use it here. r=me, thanks ! ::: apps/sms/js/attachment_menu.js @@ +39,5 @@ > this.cancelButton.textContent = _('cancel'); > > this.el.className = ''; > + > + // focus the menu so we can lose focus on anything with the keyboard nit: add a comment that this is for the "longpress/contextmenu" case
Attachment #753462 - Flags: review?(felash) → review+
master: 5bfb1cc32764939c296d51e52a93643c3b874b2d
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [NO_UPLIFT]
Depends on: 868227
Whiteboard: [NO_UPLIFT]
blocking-b2g: leo? → leo+
v1-train: 49de8c6
Flags: in-moztrap?
Flags: in-moztrap? → in-moztrap+
Added SMS Suite Test Case #8571 [SMS] The keyboard is hidden when the attachments options menu is displayed
Verified fixed, the issue no longer reproduces. Environmental Variables Build ID: 20130806071254 Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/a2a9b89ef5ee Gaia: 4c1a20570e20f64782ba170c14604395c48f7381 Platform Version: 18.1 User is able to see the menu without the keyboard.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: