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)

x86
macOS
defect
Not set
normal

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.
Depends on: 951275
Blocks: 951275
No longer depends on: 951275
Attached file Promisify latin.js
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)
Summary: Keyboard should respect returnvalue of sendKey → Keyboard should respect return values that come from InputMethod
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+
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.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
No longer blocks: 1013570
Depends on: 1013570
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: