From: Rafael Fernández López Date: Tue, 18 Dec 2007 16:49:16 +0000 (+0000) Subject: The popup menu is not shown if ctrl,shift or alt is pressed X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/fe09a37c59f3f326556b31e76974758badcc1dad The popup menu is not shown if ctrl,shift or alt is pressed svn path=/trunk/KDE/kdebase/apps/; revision=750079 --- diff --git a/src/dolphindropcontroller.cpp b/src/dolphindropcontroller.cpp index 6e7ec37ba..002c242ac 100644 --- a/src/dolphindropcontroller.cpp +++ b/src/dolphindropcontroller.cpp @@ -50,6 +50,7 @@ void DolphinDropController::dropUrls(const KUrl::List& urls, Qt::KeyboardModifiers modifier = QApplication::keyboardModifiers(); const bool shiftPressed = modifier & Qt::ShiftModifier; const bool controlPressed = modifier & Qt::ControlModifier; + const bool altPressed = modifier & Qt::AltModifier; if (shiftPressed && controlPressed) { // shortcut for 'Link Here' is used action = Qt::LinkAction; @@ -59,6 +60,9 @@ void DolphinDropController::dropUrls(const KUrl::List& urls, } else if (controlPressed) { // shortcut for 'Copy Here' is used action = Qt::CopyAction; + } else if (altPressed) { + // shortcut for 'Link Here' is used + action = Qt::LinkAction; } else { // open a context menu which offers the following actions: // - Move Here