rustdesk 2024-06-18 16:30:56 +08:00
parent bf6a3a7067
commit e3ca82945f
2 changed files with 3 additions and 4 deletions

View File

@ -2692,6 +2692,8 @@ Future<void> shouldBeBlocked(RxBool block, WhetherUseRemoteBlock? use) async {
var d = time0 - await bind.mainGetMouseTime();
if (d < 120) {
block.value = true;
} else {
block.value = false;
}
});
}

View File

@ -107,10 +107,7 @@ class _DesktopTabPageState extends State<DesktopTabPage>
onEnter: (_) async {
await shouldBeBlocked(_block, canBeBlocked);
},
child: _block
.value // FocusScope cause id input not working when closing remote
? tabWidget
: FocusScope(child: tabWidget, canRequestFocus: false));
child: FocusScope(child: tabWidget, canRequestFocus: !_block.value));
return isMacOS || kUseCompatibleUiMode
? Obx(() => widget())
: Obx(