Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix(ios): Add defensive timer cancellation for keyboard visibility (#14301)

fufesoude6bf9dc7eee
diff --git a/flutter/lib/mobile/pages/remote_page.dart b/flutter/lib/mobile/pages/remote_page.dart
index 9c8ffed65..b379a5591 100644
--- a/flutter/lib/mobile/pages/remote_page.dart
+++ b/flutter/lib/mobile/pages/remote_page.dart
@@ -224,6 +224,8 @@ class _RemotePageState extends State<RemotePage> with WidgetsBindingObserver {
});
}
} else {
+ _iosKeyboardWorkaroundTimer?.cancel();
+ _iosKeyboardWorkaroundTimer = null;
_timer?.cancel();
_timer = Timer(kMobileDelaySoftKeyboardFocus, () {
SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,