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();
|
var d = time0 - await bind.mainGetMouseTime();
|
||||||
if (d < 120) {
|
if (d < 120) {
|
||||||
block.value = true;
|
block.value = true;
|
||||||
|
} else {
|
||||||
|
block.value = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -107,10 +107,7 @@ class _DesktopTabPageState extends State<DesktopTabPage>
|
|||||||
onEnter: (_) async {
|
onEnter: (_) async {
|
||||||
await shouldBeBlocked(_block, canBeBlocked);
|
await shouldBeBlocked(_block, canBeBlocked);
|
||||||
},
|
},
|
||||||
child: _block
|
child: FocusScope(child: tabWidget, canRequestFocus: !_block.value));
|
||||||
.value // FocusScope cause id input not working when closing remote
|
|
||||||
? tabWidget
|
|
||||||
: FocusScope(child: tabWidget, canRequestFocus: false));
|
|
||||||
return isMacOS || kUseCompatibleUiMode
|
return isMacOS || kUseCompatibleUiMode
|
||||||
? Obx(() => widget())
|
? Obx(() => widget())
|
||||||
: Obx(
|
: Obx(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user