From de65f71312522584cdd3d71b606cbe6b9f0f2fca Mon Sep 17 00:00:00 2001 From: jerry Date: Thu, 17 Apr 2014 17:10:36 +0000 Subject: [PATCH] removed left control key hack for faking drag on mac --- src/lib/platform/OSXScreen.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/lib/platform/OSXScreen.cpp b/src/lib/platform/OSXScreen.cpp index 88832e4d..e5f10bf4 100644 --- a/src/lib/platform/OSXScreen.cpp +++ b/src/lib/platform/OSXScreen.cpp @@ -620,9 +620,6 @@ COSXScreen::fakeMouseButton(ButtonID id, bool press) m_lastSingleClickYCursor = m_yCursor; } if (!press && (id == kButtonLeft)) { - // fake ctrl key up - fakeKeyUp(29); - if (m_fakeDraggingStarted) { m_getDropTargetThread = new CThread(new TMethodJob( this, &COSXScreen::getDropTargetThread)); @@ -670,11 +667,7 @@ void COSXScreen::fakeMouseMove(SInt32 x, SInt32 y) { if (m_fakeDraggingStarted) { - // HACK: for some reason the drag icon - // does not follow the cursor unless a key - // is pressed (except esc key) - // TODO: fake this key down properly - fakeKeyDown(kKeyControl_L, 8194, 29); + m_buttonState.set(0, kMouseButtonDown); } // index 0 means left mouse button @@ -925,9 +918,6 @@ COSXScreen::leave() fakeMouseButton(kButtonLeft, false); - // fake ctrl key up - fakeKeyUp(29); - if (fileList.empty() == false) { CClientApp& app = CClientApp::instance(); CClient* client = app.getClientPtr();