From 1d7b08a3817ea0481cb13490a573bb15316e294a Mon Sep 17 00:00:00 2001 From: "jaggernaut%netscape.com" Date: Fri, 4 Apr 2003 12:48:23 +0000 Subject: [PATCH] Bug 200638: fix drag copy modifier key on Mac OS X. r=Neil, sr=peterv git-svn-id: svn://10.0.0.236/trunk@140691 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp | 2 +- mozilla/editor/libeditor/text/nsPlaintextDataTransfer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp b/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp index 7eb4cf9a121..028e731fc2d 100644 --- a/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp +++ b/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp @@ -1110,7 +1110,7 @@ NS_IMETHODIMP nsHTMLEditor::InsertFromDrop(nsIDOMEvent* aDropEvent) nsCOMPtr mouseEvent(do_QueryInterface(aDropEvent)); if (mouseEvent) -#ifdef XP_MAC +#if defined(XP_MAC) || defined(XP_MACOSX) mouseEvent->GetAltKey(&userWantsCopy); #else mouseEvent->GetCtrlKey(&userWantsCopy); diff --git a/mozilla/editor/libeditor/text/nsPlaintextDataTransfer.cpp b/mozilla/editor/libeditor/text/nsPlaintextDataTransfer.cpp index 65b2056b68a..46a6cf12ae7 100644 --- a/mozilla/editor/libeditor/text/nsPlaintextDataTransfer.cpp +++ b/mozilla/editor/libeditor/text/nsPlaintextDataTransfer.cpp @@ -215,7 +215,7 @@ NS_IMETHODIMP nsPlaintextEditor::InsertFromDrop(nsIDOMEvent* aDropEvent) nsCOMPtr mouseEvent ( do_QueryInterface(aDropEvent) ); if (mouseEvent) -#ifdef XP_MAC +#if defined(XP_MAC) || defined(XP_MACOSX) mouseEvent->GetAltKey(&userWantsCopy); #else mouseEvent->GetCtrlKey(&userWantsCopy);