Comment #3 on issue 18792 by vandebo: Middle click doesn't trigger onpaste
event
http://code.google.com/p/chromium/issues/detail?id=18792
Middle click currently works like this:
Browser: Middle click is sent to the renderer as an InputEvent
Renderer: In WebViewImpl::MouseUp, middle click triggers
RenderView::PasteFromSelectionClipboard, which sends a
ViewHostMsg_PasteFromSelectionClipboard IPC
Browser: The PRIMARY selection is obtained and
RenderWidgetHostViewGtk::ReceivedSelectionText sends a ViewMsg_InsertText
IPC
The InsertText IPC is not a paste event, so the onpaste and beforepaste
handlers are
not triggered.
Instead of sending a ViewHostMsg_PasteFromSelectionClipboard, the Renderer
could
execute a Paste command
(editor->command(AtomicString("Paste")).execute();). This
would trigger the appropriate handlers, but paste the clipboard text
instead of the
PRIMARY selection text. (WebClipboardImpl::readPlainText() sends a
ViewHostMsg_ClipboardReadText IPC, which always responds with the clipboard
text.)
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---