mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-02-21 06:23:26 -05:00
fix: Copy selected in code block instead all
This commit is contained in:
@ -118,7 +118,10 @@ Rectangle {
|
|||||||
|
|
||||||
Platform.MenuItem {
|
Platform.MenuItem {
|
||||||
text: qsTr("Copy")
|
text: qsTr("Copy")
|
||||||
onTriggered: utils.copyToClipboard(root.code)
|
onTriggered: {
|
||||||
|
const textToCopy = codeText.selectedText || root.code
|
||||||
|
utils.copyToClipboard(textToCopy)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Platform.MenuSeparator {}
|
Platform.MenuSeparator {}
|
||||||
|
|||||||
Reference in New Issue
Block a user