Closed Bug 855175 Opened 13 years ago Closed 13 years ago

[Contacts] Add contact: After clicked an input field and switched to the Lable page directly, the keyboard did not hide.

Categories

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

x86
macOS
defect
Not set
normal

Tracking

(b2g18 fixed)

RESOLVED FIXED
Tracking Status
b2g18 --- fixed

People

(Reporter: evanxd, Assigned: evanxd)

References

Details

Attachments

(2 files)

Attached video STR Video
STR: 1. Go to the Add contact page. 2. Click an input field, like Phone field. (The keyboard show up.) 3. Directly, click the MOBILE Label item. Expected: The keyboard was hidden, and switched to the Label page. Result: The keyboard didn't hide, then switched to the Label page.
We used the mozKeyboard API to remove the focus in the goToSelectTag function. See the code: https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/contacts/js/contacts.js#L404 But we didn't defined the keyboard permission in the manifest.webapp. See the code: https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/manifest.webapp#L69 we need to define a keyboard permission in the manifest.webapp, and the issue will be solved.
Assignee: nobody → evanxd
Thanks :)
Attachment #730045 - Flags: review?(alberto.pastor)
Attachment #730045 - Attachment description: https://github.com/mozilla-b2g/gaia/pull/8842 → Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/8842
Attachment #730045 - Attachment description: Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/8842 → Pointer to GitHub pull request: https://github.com/mozilla-b2g/gaia/pull/8842
blocking-b2g: --- → tef?
I can reproduce it in v1.0.1 but is not a blocker in my opinion. I'd suggest we land it in master once it gets r+ and request approval for uplifting to v1.1
blocking-b2g: tef? → -
Attachment #730045 - Flags: review?(alberto.pastor) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment on attachment 730045 [details] Pointer to GitHub pull request: https://github.com/mozilla-b2g/gaia/pull/8842 NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): User impact if declined: Testing completed: Risk to taking this patch (and alternatives if risky): One liner that avoid they keyboard when going to the labels view String or UUID changes made by this patch:
Attachment #730045 - Flags: approval-gaia-v1?
Hi Evan, I think it is not that appropriate for a non-keyboard app to use keyboard API. Is it possible for that element we clicked to get the focus from the input? (Right now, it would not because we do "preventDefault()" in onGoToSelectTag() function of contacts_form.js.) What do you think?
Comment on attachment 730045 [details] Pointer to GitHub pull request: https://github.com/mozilla-b2g/gaia/pull/8842 We'll reconsider after comment 6 is addressed (not clear if that should block uplift).
Attachment #730045 - Flags: approval-gaia-v1? → approval-gaia-v1+
Hi Rudy, I think you have a good point. I'll follow up that to figure out why we use preventDefault() in the onGoToSelectTag() function.
blocking-b2g: - → leo?
blocking-b2g: leo? → ---
Uplifted commit 8fc1b68d4018ad7d9dad272426b19e576189ac4f as: v1-train: f391a5f297e2519a0c9a981f6dd43433dba47e50
(In reply to Evan Tseng from comment #8) > Hi Rudy, > > I think you have a good point. > > I'll follow up that to figure out why we use preventDefault() in the > onGoToSelectTag() function. Hi Even, any update of this problem? I think this is an abuse of mozKeyboard API. Please file a follow-up issue for tracking, we should fix it.
Blocks: 859201
Hi Evelyn, I just created a bug for this issue. http://bugzil.la/859201 And I'll fix the issue. Thanks. :)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: