mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-05 16:38:17 +00:00
fix: avoid duplicate focus stops in request approval menus
This commit is contained in:
1 parent
76dacea54b
commit
bb68f6f7d6
2 files changed
+33
-3
No files matched your search
@@ -101,9 +101,12 @@ class MyPopupMenuItemState<T, W extends PopupMenuChildrenItem<T>>
|
||||
.findAncestorStateOfType<mod_menu.PopupMenuButtonState<T>>()
|
||||
?.showButtonMenu()
|
||||
: null;
|
||||
return TextButton(
|
||||
onPressed: onPressed,
|
||||
child: TextButton(onPressed: onPressed, child: child),
|
||||
// The popup trigger owns keyboard focus; retain the menu button sizing.
|
||||
return ExcludeFocus(
|
||||
child: TextButton(
|
||||
onPressed: onPressed,
|
||||
child: TextButton(onPressed: onPressed, child: child),
|
||||
),
|
||||
);
|
||||
}),
|
||||
));
|
||||
|
||||
Reference in new issue
Block a user