Accept ctrl-c to copy selected messages
This commit is contained in:
		| @@ -1,5 +1,6 @@ | ||||
| import QtQuick 2.12 | ||||
| import QtQuick.Controls 2.12 | ||||
| import "../utils.js" as Utils | ||||
|  | ||||
| TextEdit { | ||||
|     id: label | ||||
| @@ -15,6 +16,15 @@ TextEdit { | ||||
|  | ||||
|     onLinkActivated: Qt.openUrlExternally(link) | ||||
|  | ||||
|     Keys.onPressed: ev => { | ||||
|         if (ev.matches(StandardKey.Copy)) { | ||||
|             ev.accepted = true | ||||
|             Utils.copyToClipboard(container.joinedSelection) | ||||
|             return | ||||
|         } | ||||
|         ev.accepted = false | ||||
|     } | ||||
|  | ||||
|  | ||||
|     property HSelectableLabelContainer container | ||||
|     property int index | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	