Skip to content

Commit

Permalink
Allow selecting and copying pinned chat message
Browse files Browse the repository at this point in the history
Using the context menu only though, because the label won't take
keyboard focus no matter how much it's told to do so. Which means that
the canvas copy shortcut will always take precedence.
  • Loading branch information
askmeaboutlo0m committed Aug 14, 2023
1 parent ef637d9 commit 84507f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Unreleased Version 2.2.0-pre
* Fix: Make exported palettes not start using the exported location to save changes to. Thanks xxxx for reporting.
* Feature: Allow muting notifications for a window. Thanks Blozzom for suggesting.
* Fix: Enable the lock session menu option properly, it remained stuck disabled in some cases before.
* Feature: Allow selecting and copying text from the pinned message (through the context menu, it doesn't take keyboard shortcuts.) Thanks Bluestrings for suggesting.

2023-07-31 Version 2.2.0-beta.6
* Fix: Don't forget account password when entering a wrong session password.
Expand Down
13 changes: 8 additions & 5 deletions src/desktop/chat/chatwidgetpinnedarea.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ ChatWidgetPinnedArea::ChatWidgetPinnedArea(QWidget *parent) :
setVisible(false);
setOpenExternalLinks(true);
setWordWrap(true);
setTextInteractionFlags(Qt::TextBrowserInteraction);
setStyleSheet(QStringLiteral(
"background: #232629;"
"border-bottom: 1px solid #2980b9;"
"color: #eff0f1;"
"padding: 3px;"
));
"QLabel {"
" background: #232629;"
" border-bottom: 1px solid #2980b9;"
" color: #eff0f1;"
" padding: 3px;"
"}"
));
}

void ChatWidgetPinnedArea::setPinText(const QString &safetext)
Expand Down

0 comments on commit 84507f9

Please sign in to comment.