Handles Ctrl+V / Cmd+V in the chat input to paste images from the clipboard.
In Electron, Theia's global paste command uses document.execCommand('paste'),
which does not produce a DOM paste event for image clipboard content.
In the browser, Monaco 1.108+'s EditContext API handles Ctrl+V internally
without firing a DOM paste event.
This contribution registers a higher-priority keybinding (scoped to chatInputFocus)
that reads images from the clipboard via the async Clipboard API.
For non-image clipboard content, it falls through to the default paste behavior.
Handles Ctrl+V / Cmd+V in the chat input to paste images from the clipboard.
In Electron, Theia's global paste command uses
document.execCommand('paste'), which does not produce a DOM paste event for image clipboard content. In the browser, Monaco 1.108+'s EditContext API handles Ctrl+V internally without firing a DOM paste event.This contribution registers a higher-priority keybinding (scoped to
chatInputFocus) that reads images from the clipboard via the async Clipboard API. For non-image clipboard content, it falls through to the default paste behavior.