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;
} 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