Closed Bug 1051599 Opened 10 years ago Closed 10 years ago

Keyboard does not handle mouse event well if cursor moved out/in of frame when pressed

Categories

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

x86
macOS
defect
Not set
normal

Tracking

(b2g-v2.1 fixed)

RESOLVED FIXED
2.1 S2 (15aug)
Tracking Status
b2g-v2.1 --- fixed

People

(Reporter: timdream, Assigned: timdream)

Details

(Whiteboard: [p=1])

Attachments

(1 file)

Only happens when the keyboard app is loaded on a web page.

STR:

1. Press a key on the keyboard
2. Move the cursor out of the keyboard window

Expected:

1. Key handling got cancelled when the cursor moved out.

Actual:

1. The last key moved over remain clicked.


STR2:

1. Press and hold the mouse cursor
2. move the cursor into the keyboard frame, and release

Expected:

1. Keyboard ignores all events

Actual:

1. JS error when the mouse button is released.
Whiteboard: [p=1]
Target Milestone: --- → 2.1 S2 (15aug)
This is trivial but since this is not related to actual development on the phone, I figured I should write the patch myself.

Getting close!
Attachment #8471275 - Flags: review?(rlu)
Comment on attachment 8471275 [details] [review]
Github: https://github.com/mozilla-b2g/gaia/pull/22755

r=me with some comments about the variable naming.
Thank you.
Attachment #8471275 - Flags: review?(rlu) → review+
master: https://github.com/mozilla-b2g/gaia/commit/9483fb304235e7cedd4a7e8519ed091070ba9b22
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: