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
|
||||
|
||||
- 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()`
|
||||
|
|
|
@ -36,6 +36,7 @@ ApplicationWindow {
|
|||
id: pseudoClipboard
|
||||
visible: false
|
||||
readOnly: true
|
||||
textFormat: Text.PlainText
|
||||
}
|
||||
|
||||
HLoader {
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user