feat: avoid closing context menu/reaction selector with CTRL/SHIFT

This commit is contained in:
AlexeyZavar
2026-06-17 13:31:16 +03:00
parent 21775bd509
commit dc437d43f2
@@ -43,6 +43,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
// AyuGram includes
#include "ayu/ui/context_menu/context_menu.h"
#include "ayu/ayu_settings.h"
#include "ayu/utils/qt_key_modifiers_extended.h"
namespace HistoryView::Reactions {
@@ -1415,7 +1416,9 @@ AttachSelectorResult AttachSelectorToMenu(
const auto itemId = item->fullId();
selector->chosen() | rpl::on_next([=](ChosenReaction reaction) {
if (!base::IsExtendedContextMenuModifierPressed()) {
menu->hideMenu();
}
reaction.context = itemId;
chosen(std::move(reaction));
}, selector->lifetime());