chrome.input.ime fails to suppress keydown events handled by ime listener |
|
Issue description
Chrome Version: 64.0.3282.190 (Official Build) (64-bit)
Platform: 10176.76.0 (Official Build) stable-channel panther
What steps will reproduce the problem?
(1) In an IME extension, register a listener that claims to handle all keystrokes:
chrome.input.ime.onKeyEvent.addListener((engineID, keyData) => { return true; });
(2) With the extension's input method enabled, navigate to
https://dvcs.w3.org/hg/d4e/raw-file/tip/key-event-test.html
(3) Press some keys on the physical keyboard.
What is the expected result?
The page should not report any key events, per
https://www.chromium.org/developers/design-documents/extensions/proposed-changes/apis-under-development/input-method-editor
What happens instead?
The page reports keydown events for all keys, but does not report the corresponding keypress or keyup events.
,
Sep 11
The inconsistency is not limited to key down events still being visible. With that code enabled, if you mash down many keys in a short time span, some of the key events will fail to be cancelled and will still pass through the native effect. In addition, whether the various action keys are cancelled is wildly inconsistent (with the only exception of the power button, which is never cancelled). |
|
►
Sign in to add a comment |
|
Comment 1 by dvallet@chromium.org
, Sep 11Status: Assigned (was: Untriaged)