Closed Bug 963096 Opened 11 years ago Closed 11 years ago

Caps lock is switched on when quickly tapping shift before and after another key

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v2.2 fixed)

RESOLVED FIXED
2.1 S8 (7Nov)
Tracking Status
b2g-v2.2 --- fixed

People

(Reporter: davehunt, Assigned: rudyl)

References

Details

(Whiteboard: [p=1])

Attachments

(1 file)

Found in automation when typing two uppercase letters, but reproduced manually. Steps to reproduce: 1. Open an app with a keyboard (such as Browser) 2. Make sure caps lock is off 3. Quickly tap [shift], [letter], [shift] Expected: Caps lock is not enabled Actual: Caps lock is enabled I also noticed that it's possible to type several uppercase letters after tapping shift, if you're fast enough.
This is old but a valid bug.
feature-b2g: --- → 2.2?
This bug is trivial to implement with the current business logic handling. We can simply remove doubleTapTimers of every other targets when a target is activated, in activeTargetManager. Rudy, would you like to implement this?
Flags: needinfo?(rlu)
Take it. Thanks.
Assignee: nobody → rlu
Flags: needinfo?(rlu)
Status: NEW → ASSIGNED
Attached file Patch V1
Comment on attachment 8514924 [details] [review] Patch V1 Tim, could you help review this? Thanks.
Attachment #8514924 - Flags: review?(timdream)
Comment on attachment 8514924 [details] [review] Patch V1 Given the fact we actually never remove any DOM element for now, it make sense to remove the WeakMap instance. But I think we should flatten the information with this.doubleTapTimer this.doubleTapPreviousTarget So we don't create a new dict, which can be abused in the future code additions. Alternatively, bringing back the WeakMap is actually cleaner in terms of code pattern (although redundant).
Attachment #8514924 - Flags: review?(timdream)
Comment on attachment 8514924 [details] [review] Patch V1 Thanks for the feedback. I'll take the first approach as you suggested, please help review it again?
Attachment #8514924 - Flags: review?(timdream)
Attachment #8514924 - Flags: review?(timdream) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [p=1]
Target Milestone: --- → 2.1 S8 (7Nov)
feature-b2g: 2.2? → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: