mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-31 10:11:20 +00:00
Fix regression: copy and paste were not working anymore.
This commit is contained in:
parent
e4f89f0486
commit
08ade0eb6f
@ -66,16 +66,20 @@ Item{
|
|||||||
|
|
||||||
onMBlurChanged: restartBlurredSource()
|
onMBlurChanged: restartBlurredSource()
|
||||||
|
|
||||||
|
// Manage copy and paste
|
||||||
|
Connections{
|
||||||
|
target: copyAction
|
||||||
|
onTriggered: kterminal.copyClipboard();
|
||||||
|
}
|
||||||
|
Connections{
|
||||||
|
target: pasteAction
|
||||||
|
onTriggered: kterminal.pasteClipboard()
|
||||||
|
}
|
||||||
|
|
||||||
function restartBlurredSource(){
|
function restartBlurredSource(){
|
||||||
if(!blurredSourceLoader.item) return;
|
if(!blurredSourceLoader.item) return;
|
||||||
blurredSourceLoader.item.restartBlurSource();
|
blurredSourceLoader.item.restartBlurSource();
|
||||||
}
|
}
|
||||||
function pasteClipboard(){
|
|
||||||
kterminal.pasteClipboard();
|
|
||||||
}
|
|
||||||
function copyClipboard(){
|
|
||||||
kterminal.copyClipboard();
|
|
||||||
}
|
|
||||||
|
|
||||||
//When settings are updated sources need to be redrawn.
|
//When settings are updated sources need to be redrawn.
|
||||||
Connections{
|
Connections{
|
||||||
|
@ -77,13 +77,11 @@ ApplicationWindow{
|
|||||||
id: copyAction
|
id: copyAction
|
||||||
text: qsTr("Copy")
|
text: qsTr("Copy")
|
||||||
shortcut: "Ctrl+Shift+C"
|
shortcut: "Ctrl+Shift+C"
|
||||||
onTriggered: terminal.copyClipboard()
|
|
||||||
}
|
}
|
||||||
Action{
|
Action{
|
||||||
id: pasteAction
|
id: pasteAction
|
||||||
text: qsTr("Paste")
|
text: qsTr("Paste")
|
||||||
shortcut: "Ctrl+Shift+V"
|
shortcut: "Ctrl+Shift+V"
|
||||||
onTriggered: terminal.pasteClipboard()
|
|
||||||
}
|
}
|
||||||
Action{
|
Action{
|
||||||
id: zoomIn
|
id: zoomIn
|
||||||
|
Loading…
x
Reference in New Issue
Block a user