fix stupid flutter

This commit is contained in:
rustdesk 2024-06-18 15:06:43 +08:00
parent d25670c79a
commit bf6a3a7067

View File

@ -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(