Closed
Bug 952078
Opened 12 years ago
Closed 12 years ago
Keyboard should respect return values that come from InputMethod
Categories
(Firefox OS Graveyard :: Gaia::Keyboard, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: janjongboom, Assigned: janjongboom)
References
Details
Attachments
(1 file)
sendKey on inputmethod is a promise. It can be rejected if a sendKey got canceled, but now we always update the state in keyboard. We should not do that, but rather rely on sendKey return value.
| Assignee | ||
Updated•12 years ago
|
| Assignee | ||
Comment 1•12 years ago
|
||
Rudy, can you review? David has a full queue.
This patch uses promises for communicating with inputmethod. This means that:
* If something fails, we won't get a wrong state
* We wait until something is finished before firing the next command
Assignee: nobody → janjongboom
Attachment #8350059 -
Flags: review?(rlu)
| Assignee | ||
Updated•12 years ago
|
Summary: Keyboard should respect returnvalue of sendKey → Keyboard should respect return values that come from InputMethod
| Assignee | ||
Comment 2•12 years ago
|
||
This makes the patch a lot cleaner: https://github.com/mozilla-b2g/gaia/pull/14851/files?w=1
| Assignee | ||
Comment 3•12 years ago
|
||
And this part also fixes bug 951275: https://github.com/mozilla-b2g/gaia/pull/14851/files?w=1#diff-8702d22395c6a86f3d58c20db7020ce8R519
Comment 4•12 years ago
|
||
Comment on attachment 8350059 [details] [review]
Promisify latin.js
Looks good, r=me.
Jan, thanks for patching this up.
Not sure if it is relevant, while it behaves correctly with this test case, attachment 8349942 [details]:
1. input 'Teh' and then [Return] key.
2. => Correct
It would be reverted to Teh + '\n' after you pressed [Backspace].
Attachment #8350059 -
Flags: review?(rlu) → review+
| Assignee | ||
Comment 5•12 years ago
|
||
Yeah we need to land https://bugzilla.mozilla.org/show_bug.cgi?id=952080 (gecko) for that. SendKey always succeeds and thus the state is not correct until we land that.
| Assignee | ||
Comment 6•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•