From 33723db3142c8f03a91e4cc4e578157c95852bab Mon Sep 17 00:00:00 2001 From: Alain Greppin Date: Wed, 16 Feb 2022 18:02:19 +0100 Subject: [PATCH] Shift+Insert -> paste selection --- app/qml/PreprocessedTerminal.qml | 7 +++++++ app/qml/main.qml | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/app/qml/PreprocessedTerminal.qml b/app/qml/PreprocessedTerminal.qml index 916ae5b..b71c4bc 100644 --- a/app/qml/PreprocessedTerminal.qml +++ b/app/qml/PreprocessedTerminal.qml @@ -58,6 +58,13 @@ Item{ kterminal.pasteClipboard() } } + Connections { + target: pasteActionAlt + + onTriggered: { + kterminal.pasteSelection() + } + } //When settings are updated sources need to be redrawn. Connections { diff --git a/app/qml/main.qml b/app/qml/main.qml index 8ae0774..7d3cd35 100644 --- a/app/qml/main.qml +++ b/app/qml/main.qml @@ -116,6 +116,11 @@ ApplicationWindow { text: qsTr("Paste") shortcut: "Ctrl+Shift+V" } + Action { + id: pasteActionAlt + text: qsTr("Paste selection") + shortcut: "Shift+Insert" + } Action { id: zoomIn text: qsTr("Zoom In")