Closed Bug 893560 Opened 12 years ago Closed 12 years ago

[System] Display a keyboard switching shortcut on utility tray when a keyboard is in use

Categories

(Firefox OS Graveyard :: Gaia::System, defect, P1)

All
Gonk (Firefox OS)
defect

Tracking

(blocking-b2g:koi+)

RESOLVED FIXED
blocking-b2g koi+

People

(Reporter: jj.evelyn, Assigned: gweng)

References

Details

(Whiteboard: [ucid:SystemPlatform5], [FT:System-Platform], [Sprint: 2], burirun1)

Attachments

(1 file)

To ensure the user has a way to switch to another keyboard app or layout, we need this shortcut on utility tray when a keyboard app is in use.
Blocks: 891673
Is there UX for this?
Flags: needinfo?(ehung)
I put UX draft on the user story meata bug 891678. Will update there for the UX spec.
Flags: needinfo?(ehung)
Assignee: nobody → gchen
Assignee: gchen → gweng
Add keywords in whiteboard for tracking Flag to koi+ for FFOS 1.2 must have
blocking-b2g: --- → koi+
Priority: -- → P1
Whiteboard: [ucid:SystemPlatform5], [FT: System Platform], [Sprint: 2]
I almost finished this bug, except the keyboard icon described in the specification (Attachment 776309 [details])(the middle frame at page 8). Although it seems the same with Settings -> Personalization -> Keyboard 's, but I can't reference to it because the Settings is another app, which holds its resources exclusively. I can copy it to the System app's resource directory. However, the icon is a part of the CSS sprite, and the other parts of the sprite will occupy unnecessary spaces. So it's not a good solution unless the System app actually need the sprite, too. Another way to solve this is to create a standalone keyboard icon, but this need be implemented by UX.
Flags: needinfo?(nhsieh)
Whiteboard: [ucid:SystemPlatform5], [FT: System Platform], [Sprint: 2] → [ucid:SystemPlatform5], [FT:System-Platform], [Sprint: 2]
Attached file Patch
Modifications: 1. Add a fake notification in the utility tray. 2. Bind events on it. 3. Do preventDefault to prevent focus changing while user is in the tray and the list.
Attachment #798782 - Flags: review?(alive)
Comment on attachment 798782 [details] Patch 1. Fire events from keyboard manager to utility tray if possible. 2. Fire events from keyboard manager to list menu if possible. 3. Do removeEventListener when you don't need it anymore. 4. Some other coding style change. So the whole story is keep every module as independent as possible, please don't touch other modules or elements directly. BTW, doesn't click on list menu items fires blur to user app?
Attachment #798782 - Flags: review?(alive)
(In reply to Alive Kuo [:alive] from comment #6) > Comment on attachment 798782 [details] > Patch > > 1. Fire events from keyboard manager to utility tray if possible. > 2. Fire events from keyboard manager to list menu if possible. > 3. Do removeEventListener when you don't need it anymore. > 4. Some other coding style change. > > So the whole story is keep every module as independent as possible, please > don't touch other modules or elements directly. > > BTW, doesn't click on list menu items fires blur to user app? Thanks for reviewing. I've re-committed my patch on GitHub and followed your instructions.
Attachment #798782 - Flags: feedback?(alive)
Comment on attachment 798782 [details] Patch Nearly done. Please fix what I addressed in github. Come to me if you have problems.
Attachment #798782 - Flags: feedback?(alive) → feedback+
Comment on attachment 798782 [details] Patch I've finished it according to the lastest comments on GitHub. If it's qualified, please merge for me (permission issue). Thanks.
Attachment #798782 - Flags: feedback+ → feedback?(alive)
Comment on attachment 798782 [details] Patch See github comment. Sorry for late feedback.
Attachment #798782 - Flags: feedback?(alive)
Comment on attachment 798782 [details] Patch Thanks. I've fixed the code, and leave a question about the z-index on GitHub.
Attachment #798782 - Flags: feedback?(alive)
Comment on attachment 798782 [details] Patch r+ if the last comments are addressed. Though this bug takes a long time to go but we finally have a more 'decoupled' and modularized modification than your first patch. Thanks for the patience!
Attachment #798782 - Flags: feedback?(alive) → feedback+
Whiteboard: [ucid:SystemPlatform5], [FT:System-Platform], [Sprint: 2] → [ucid:SystemPlatform5], [FT:System-Platform], [Sprint: 2], burirun1
Flags: needinfo?(nhsieh)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: