From 8159e63d89930e3149a017d860f2ed8123f3eeaf Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sat, 11 Nov 2023 11:33:41 +0100 Subject: [PATCH] fix: Split input sometimes not accepting focus --- CHANGELOG.md | 1 + src/widgets/splits/SplitInput.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b47137645e9..1ee48efd67e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ - Bugfix: Fixed capitalized channel names in log inclusion list not being logged. (#4848) - Bugfix: Trimmed custom streamlink paths on all platforms making sure you don't accidentally add spaces at the beginning or end of its path. (#4834) - Bugfix: Fixed a performance issue when displaying replies to certain messages. (#4807) +- Bugfix: Fixed an issue where certain parts of the split input wouldn't focus the split when clicked. (#4958) - Bugfix: Fixed a data race when disconnecting from Twitch PubSub. (#4771) - Bugfix: Fixed `/shoutout` command not working with usernames starting with @'s (e.g. `/shoutout @forsen`). (#4800) - Bugfix: Fixed Usercard popup not floating on tiling WMs on Linux when "Automatically close user popup when it loses focus" setting is enabled. (#3511) diff --git a/src/widgets/splits/SplitInput.cpp b/src/widgets/splits/SplitInput.cpp index 071b0076e3f..2d94314acd6 100644 --- a/src/widgets/splits/SplitInput.cpp +++ b/src/widgets/splits/SplitInput.cpp @@ -691,6 +691,8 @@ void SplitInput::installKeyPressedEvent() void SplitInput::mousePressEvent(QMouseEvent *event) { + this->giveFocus(Qt::MouseFocusReason); + if (this->hidden) { BaseWidget::mousePressEvent(event);