diff --git a/lookandfeel/contents/runcommand/RunCommand.qml b/lookandfeel/contents/runcommand/RunCommand.qml --- a/lookandfeel/contents/runcommand/RunCommand.qml +++ b/lookandfeel/contents/runcommand/RunCommand.qml @@ -244,8 +244,8 @@ currentIndex = 0; } } - Keys.onReturnPressed: runCurrentIndex() - Keys.onEnterPressed: runCurrentIndex() + Keys.onReturnPressed: runCurrentIndex(event) + Keys.onEnterPressed: runCurrentIndex(event) Keys.onTabPressed: { if (currentIndex == listView.count-1) { @@ -276,9 +276,16 @@ Keys.onUpPressed: decrementCurrentIndex() Keys.onDownPressed: incrementCurrentIndex() - function runCurrentIndex() { + function runCurrentIndex(event) { var entry = runnerWindow.history[currentIndex] if (entry) { + // If user presses Shift+Return to invoke an action, invoke the first runner action + if (event && event.modifiers === Qt.ShiftModifier + && currentItem.additionalActions && currentItem.additionalActions.length > 0) { + runAction(0); + return + } + queryField.text = entry queryField.forceActiveFocus(); }