From edaeca4f116d6240bdaf562e225706b48f08ca68 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Fri, 25 Jul 2025 11:39:40 +0500 Subject: [PATCH] feat: set focus on first item of context menu Signed-off-by: Boris Yumankulov --- portprotonqt/context_menu_manager.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/portprotonqt/context_menu_manager.py b/portprotonqt/context_menu_manager.py index bb92aa9..9e7aa6d 100644 --- a/portprotonqt/context_menu_manager.py +++ b/portprotonqt/context_menu_manager.py @@ -280,6 +280,11 @@ class ContextMenuManager: ) ) + # Устанавливаем фокус на первый элемент меню + actions = menu.actions() + if actions: + menu.setActiveAction(actions[0]) + menu.exec(game_card.mapToGlobal(pos)) def _launch_game(self, game_card):