Pseudo-clipboard safety modifications
This commit is contained in:
parent
5ce71834f9
commit
922eac4ea9
6
TODO.md
6
TODO.md
|
@ -40,8 +40,14 @@
|
||||||
- Room header descriptions: styled text
|
- Room header descriptions: styled text
|
||||||
|
|
||||||
- Message selection
|
- Message selection
|
||||||
|
- ctrl-c
|
||||||
|
- Copy appending copies?
|
||||||
|
- Don't copy combined message names
|
||||||
|
- Copy link
|
||||||
- Make scroll wheel usable
|
- Make scroll wheel usable
|
||||||
- Copy to X11 selection
|
- Copy to X11 selection
|
||||||
|
- Make events copiable
|
||||||
|
- Images don't load correctly in TextEdit
|
||||||
|
|
||||||
- Just use Shortcut onHeld instead of analyzing the current velocity
|
- Just use Shortcut onHeld instead of analyzing the current velocity
|
||||||
in `smartVerticalFlick()`
|
in `smartVerticalFlick()`
|
||||||
|
|
|
@ -36,6 +36,7 @@ ApplicationWindow {
|
||||||
id: pseudoClipboard
|
id: pseudoClipboard
|
||||||
visible: false
|
visible: false
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
textFormat: Text.PlainText
|
||||||
}
|
}
|
||||||
|
|
||||||
HLoader {
|
HLoader {
|
||||||
|
|
|
@ -204,7 +204,8 @@ function flickToBottom(flickable) {
|
||||||
|
|
||||||
|
|
||||||
function copyToClipboard(text) {
|
function copyToClipboard(text) {
|
||||||
window.pseudoClipboard.text = text
|
window.pseudoClipboard.clear()
|
||||||
|
window.pseudoClipboard.insert(0, text)
|
||||||
window.pseudoClipboard.selectAll()
|
window.pseudoClipboard.selectAll()
|
||||||
window.pseudoClipboard.copy()
|
window.pseudoClipboard.copy()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user