Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix stupid flutter

rustdeskbf6a3a7067dc
diff --git a/flutter/lib/desktop/pages/desktop_tab_page.dart b/flutter/lib/desktop/pages/desktop_tab_page.dart
index e611aca44..9f9f4fd5b 100644
--- a/flutter/lib/desktop/pages/desktop_tab_page.dart
+++ b/flutter/lib/desktop/pages/desktop_tab_page.dart
@@ -107,7 +107,10 @@ class _DesktopTabPageState extends State<DesktopTabPage>
onEnter: (_) async {
await shouldBeBlocked(_block, canBeBlocked);
},
- child: FocusScope(child: tabWidget, canRequestFocus: !_block.value));
+ child: _block
+ .value // FocusScope cause id input not working when closing remote
+ ? tabWidget
+ : FocusScope(child: tabWidget, canRequestFocus: false));
return isMacOS || kUseCompatibleUiMode
? Obx(() => widget())
: Obx(