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:
mkaply%us.ibm.com 2001-05-22 14:11:17 +00:00
parent 6c2b7194aa
commit 26a1b313fe
2 changed files with 20 additions and 4 deletions

View File

@ -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:

View File

@ -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: