Open Bug 1718429 Opened 3 years ago Updated 3 years ago

inputType when inserting image from software keyboard

Categories

(Core :: DOM: Events, enhancement, P3)

Desktop
Windows
enhancement

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.

Well, if it should be emulated as "paste" in HTMLEditor, should we fire paste event too?

Severity: -- → S3
Priority: -- → P3
Hardware: Unspecified → Desktop
Summary: inpuType when inserting image from software keyboard → inputType when inserting image from software keyboard
Blocks: windows-11

Looks like the resolution from https://github.com/w3c/input-events/issues/117 is that we should fire a "paste" event as well.

Looks like https://github.com/w3c/input-events/commit/252c63d1ddacc2a6d999c86ca8867076f3ea63b3 clarifies "insertFromPaste" so it can be used in this case.

Hi, does this bug imply that for instance pasting an image with Ctrl+V inside an email will break on Win11?

(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

You need to log in before you can comment on or make changes to this bug.