mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-20 00:43:07 +08:00
Merge pull request #3917 from fufesou/fix/mobile_show_chat_window
fix mobile show chat window
This commit is contained in:
commit
af32998af6
@ -388,6 +388,15 @@ class BlockableOverlayState extends OverlayKeyState {
|
||||
_middleBlocked.value = blocked;
|
||||
}
|
||||
}
|
||||
|
||||
void applyFfi(FFI ffi) {
|
||||
ffi.dialogManager.setOverlayState(this);
|
||||
ffi.chatModel.setOverlayState(this);
|
||||
// make remote page penetrable automatically, effective for chat over remote
|
||||
onMiddleBlockedClick = () {
|
||||
setMiddleBlocked(false);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
class BlockableOverlay extends StatelessWidget {
|
||||
|
@ -158,12 +158,7 @@ class _RemotePageState extends State<RemotePage>
|
||||
// _isCustomCursorInited = true;
|
||||
// }
|
||||
|
||||
_ffi.dialogManager.setOverlayState(_blockableOverlayState);
|
||||
_ffi.chatModel.setOverlayState(_blockableOverlayState);
|
||||
// make remote page penetrable automatically, effective for chat over remote
|
||||
_blockableOverlayState.onMiddleBlockedClick = () {
|
||||
_blockableOverlayState.setMiddleBlocked(false);
|
||||
};
|
||||
_blockableOverlayState.applyFfi(_ffi);
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -20,7 +20,6 @@ import '../../models/input_model.dart';
|
||||
import '../../models/model.dart';
|
||||
import '../../models/platform_model.dart';
|
||||
import '../../utils/image.dart';
|
||||
import '../widgets/dialog.dart';
|
||||
import '../widgets/gestures.dart';
|
||||
|
||||
final initText = '\1' * 1024;
|
||||
@ -43,6 +42,8 @@ class _RemotePageState extends State<RemotePage> {
|
||||
double _mouseScrollIntegral = 0; // mouse scroll speed controller
|
||||
Orientation? _currentOrientation;
|
||||
|
||||
final _blockableOverlayState = BlockableOverlayState();
|
||||
|
||||
final keyboardVisibilityController = KeyboardVisibilityController();
|
||||
late final StreamSubscription<bool> keyboardSubscription;
|
||||
final FocusNode _mobileFocusNode = FocusNode();
|
||||
@ -67,6 +68,7 @@ class _RemotePageState extends State<RemotePage> {
|
||||
gFFI.qualityMonitorModel.checkShowQualityMonitor(widget.id);
|
||||
keyboardSubscription =
|
||||
keyboardVisibilityController.onChange.listen(onSoftKeyboardChanged);
|
||||
_blockableOverlayState.applyFfi(gFFI);
|
||||
}
|
||||
|
||||
@override
|
||||
|
Loading…
Reference in New Issue
Block a user