┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphindropcontroller.cpp
diff options
context:
space:
mode:
authorRafael Fernández López <[email protected]>2007-12-18 16:49:16 +0000
committerRafael Fernández López <[email protected]>2007-12-18 16:49:16 +0000
commitfe09a37c59f3f326556b31e76974758badcc1dad (patch)
treea30203d7280ed5d631be434026e9193303d3f575 /src/dolphindropcontroller.cpp
parent2b6ecf638d15c11b13c86c381e05e549c8684be6 (diff)
The popup menu is not shown if ctrl,shift or alt is pressed
svn path=/trunk/KDE/kdebase/apps/; revision=750079
Diffstat (limited to 'src/dolphindropcontroller.cpp')
-rw-r--r--src/dolphindropcontroller.cpp4
1 files changed, 4 insertions, 0 deletions
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