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