diff --git a/mozilla/editor/base/nsEditorEventListeners.cpp b/mozilla/editor/base/nsEditorEventListeners.cpp index 3bb75a0cf1f..19725072bbb 100644 --- a/mozilla/editor/base/nsEditorEventListeners.cpp +++ b/mozilla/editor/base/nsEditorEventListeners.cpp @@ -413,10 +413,18 @@ nsTextEditorMouseListener::MouseClick(nsIDOMEvent* aMouseEvent) if (ctrlKey) mailEditor = do_QueryInterface(mEditor); + PRInt32 clipboard; + +#ifdef XP_OS2 + clipboard = nsIClipboard::kGlobalClipboard; +#else + clipboard = nsIClipboard::kSelectionClipboard; +#endif + if (mailEditor) - mailEditor->PasteAsQuotation(nsIClipboard::kSelectionClipboard); + mailEditor->PasteAsQuotation(clipboard); else - editor->Paste(nsIClipboard::kSelectionClipboard); + editor->Paste(clipboard); // Prevent the event from bubbling up to be possibly handled // again by the containing window: diff --git a/mozilla/editor/libeditor/text/nsEditorEventListeners.cpp b/mozilla/editor/libeditor/text/nsEditorEventListeners.cpp index 3bb75a0cf1f..19725072bbb 100644 --- a/mozilla/editor/libeditor/text/nsEditorEventListeners.cpp +++ b/mozilla/editor/libeditor/text/nsEditorEventListeners.cpp @@ -413,10 +413,18 @@ nsTextEditorMouseListener::MouseClick(nsIDOMEvent* aMouseEvent) if (ctrlKey) mailEditor = do_QueryInterface(mEditor); + PRInt32 clipboard; + +#ifdef XP_OS2 + clipboard = nsIClipboard::kGlobalClipboard; +#else + clipboard = nsIClipboard::kSelectionClipboard; +#endif + if (mailEditor) - mailEditor->PasteAsQuotation(nsIClipboard::kSelectionClipboard); + mailEditor->PasteAsQuotation(clipboard); else - editor->Paste(nsIClipboard::kSelectionClipboard); + editor->Paste(clipboard); // Prevent the event from bubbling up to be possibly handled // again by the containing window: