diff --git a/TODO.md b/TODO.md index 9dfbfad1..e9cd8806 100644 --- a/TODO.md +++ b/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()` diff --git a/src/qml/Window.qml b/src/qml/Window.qml index 4cf18100..9aa49df9 100644 --- a/src/qml/Window.qml +++ b/src/qml/Window.qml @@ -36,6 +36,7 @@ ApplicationWindow { id: pseudoClipboard visible: false readOnly: true + textFormat: Text.PlainText } HLoader { diff --git a/src/qml/utils.js b/src/qml/utils.js index 03b31f28..8714e291 100644 --- a/src/qml/utils.js +++ b/src/qml/utils.js @@ -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() }