Closed
Bug 963096
Opened 11 years ago
Closed 10 years ago
Caps lock is switched on when quickly tapping shift before and after another key
Categories
(Firefox OS Graveyard :: Gaia::Keyboard, defect)
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.
Comment 1•10 years ago
|
||
This is old but a valid bug.
Blocks: keyboard-ux-update
feature-b2g: --- → 2.2?
Comment 2•10 years ago
|
||
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)
Assignee | ||
Updated•10 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•10 years ago
|
||
Assignee | ||
Comment 5•10 years ago
|
||
Comment on attachment 8514924 [details]
Patch V1
Tim, could you help review this?
Thanks.
Attachment #8514924 -
Flags: review?(timdream)
Comment 6•10 years ago
|
||
Comment on attachment 8514924 [details]
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)
Assignee | ||
Comment 7•10 years ago
|
||
Comment on attachment 8514924 [details]
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)
Updated•10 years ago
|
Attachment #8514924 -
Flags: review?(timdream) → review+
Assignee | ||
Comment 8•10 years ago
|
||
master, https://github.com/mozilla-b2g/gaia/commit/53259ae67e3966ead5786619f913575eb7cf7b13 -- Thanks for the review.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-b2g-v2.2:
--- → fixed
Resolution: --- → FIXED
Whiteboard: [p=1]
Target Milestone: --- → 2.1 S8 (7Nov)
Updated•10 years ago
|
feature-b2g: 2.2? → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•