This commit is contained in:
parent
bf6a3a7067
commit
e3ca82945f
@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user