mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Check if app is active before showing a tooltip.
Fixes #6885, fixes #6895.
This commit is contained in:
@@ -1476,7 +1476,9 @@ void HistoryWidget::notify_userIsBotChanged(UserData *user) {
|
||||
void HistoryWidget::setupShortcuts() {
|
||||
Shortcuts::Requests(
|
||||
) | rpl::filter([=] {
|
||||
return isActiveWindow() && !Ui::isLayerShown() && inFocusChain();
|
||||
return Ui::AppInFocus()
|
||||
&& Ui::InFocusChain(this)
|
||||
&& !Ui::isLayerShown();
|
||||
}) | rpl::start_with_next([=](not_null<Shortcuts::Request*> request) {
|
||||
using Command = Shortcuts::Command;
|
||||
if (_history) {
|
||||
|
Reference in New Issue
Block a user