inputType when inserting image from software keyboard
Categories
(Core :: DOM: Events, enhancement, P3)
Tracking
()
People
(Reporter: m_kato, Unassigned)
References
(Blocks 1 open bug)
Details
Software keyboard in next version of Windows has image insertion support like Android's GBoard.
When using it on Windows insider build, inputType seems to be insertFromDrop
on Gecko. But according to https://github.com/w3c/input-events/issues/117,
RESOLUTION from the Editing Meeting: clarify that image insertion is done via paste. Also, need to update CEDisabled where web devs need to understand what kind of paste it is (plain text vs image, vs other content).
I guess that Windows uses Drag&drop API (as fallback?) but we need to investigate whether we can set better inputType like above decision.
Comment 1•3 years ago
|
||
Well, if it should be emulated as "paste" in HTMLEditor
, should we fire paste
event too?
Updated•3 years ago
|
Reporter | ||
Updated•3 years ago
|
Comment 2•3 years ago
|
||
Looks like the resolution from https://github.com/w3c/input-events/issues/117 is that we should fire a "paste" event as well.
Comment 3•3 years ago
|
||
Looks like https://github.com/w3c/input-events/commit/252c63d1ddacc2a6d999c86ca8867076f3ea63b3 clarifies "insertFromPaste" so it can be used in this case.
Comment 4•3 years ago
|
||
Hi, does this bug imply that for instance pasting an image with Ctrl+V inside an email will break on Win11?
Reporter | ||
Comment 5•3 years ago
|
||
(In reply to Romain Testard [:RT] from comment #4)
Hi, does this bug imply that for instance pasting an image with Ctrl+V inside an email will break on Win11?
No, this issue is software keyboard only that is new GIF insertion picker feature of Windows 11. Ctrl+V is uneffected. Also, Chrome and Edge break this feature. See https://bugs.chromium.org/p/chromium/issues/detail?id=1250640
Description
•