mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 02:16:00 +02:00
This commit is contained in:
parent
bf6a3a7067
commit
e3ca82945f
2 changed files with 3 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue