Pseudo-clipboard safety modifications

This commit is contained in:
miruka 2019-09-01 06:34:24 -04:00
parent 5ce71834f9
commit 922eac4ea9
3 changed files with 9 additions and 1 deletions

View File

@ -40,8 +40,14 @@
- Room header descriptions: styled text
- Message selection
- ctrl-c
- Copy appending copies?
- Don't copy combined message names
- Copy link
- Make scroll wheel usable
- Copy to X11 selection
- Make events copiable
- Images don't load correctly in TextEdit
- Just use Shortcut onHeld instead of analyzing the current velocity
in `smartVerticalFlick()`

View File

@ -36,6 +36,7 @@ ApplicationWindow {
id: pseudoClipboard
visible: false
readOnly: true
textFormat: Text.PlainText
}
HLoader {

View File

@ -204,7 +204,8 @@ function flickToBottom(flickable) {
function copyToClipboard(text) {
window.pseudoClipboard.text = text
window.pseudoClipboard.clear()
window.pseudoClipboard.insert(0, text)
window.pseudoClipboard.selectAll()
window.pseudoClipboard.copy()
}