r=anthonyd, sr=sfraser Enable middle button paste on OS/2 by using kGlobalClipboard git-svn-id: svn://10.0.0.236/trunk@95677 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
6c2b7194aa
commit
26a1b313fe
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user