Skip to content

Commit d63506d

Browse files
MrSnowball-devclaude
authored andcommitted
Activate window on swipe-to-reply.
A touchpad swipe-to-reply works on an unfocused window, because scroll events are delivered to the window under the pointer without moving keyboard focus. The reply bar opened, but keystrokes kept going to the previously focused application. Request window activation when a swipe triggers a reply, like other reply flows already do. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 033d383 commit d63506d

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Telegram/SourceFiles/history/history_inner_widget.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ void HistoryInner::setupSwipeReplyAndBack() {
762762
if (!exact) {
763763
return;
764764
}
765+
Window::ActivateWindow(_controller);
765766
_widget->replyToMessage({
766767
.messageId = exact->fullId(),
767768
.quote = selected.highlight.quote,

Telegram/SourceFiles/history/view/history_view_chat_section.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,7 @@ void ChatWidget::setupSwipeReplyAndBack() {
10981098
if (!exact) {
10991099
return;
11001100
}
1101+
Window::ActivateWindow(controller());
11011102
_inner->replyToMessageRequestNotify({
11021103
.messageId = exact->fullId(),
11031104
.quote = selected.highlight.quote,

0 commit comments

Comments
 (0)