From 0f070b0108554ef9d7385c09120ff298770771ec Mon Sep 17 00:00:00 2001 From: fufesou <13586388+fufesou@users.noreply.github.com> Date: Thu, 7 Nov 2024 22:54:14 +0800 Subject: [PATCH] revert: 9644, iOS, Korean input (#9857) Signed-off-by: fufesou --- flutter/lib/mobile/pages/remote_page.dart | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/flutter/lib/mobile/pages/remote_page.dart b/flutter/lib/mobile/pages/remote_page.dart index a1be9c009..fd0e007e2 100644 --- a/flutter/lib/mobile/pages/remote_page.dart +++ b/flutter/lib/mobile/pages/remote_page.dart @@ -269,14 +269,10 @@ class _RemotePageState extends State with WidgetsBindingObserver { } } - Future handleSoftKeyboardInput(String newValue) async { + // handle mobile virtual keyboard + void handleSoftKeyboardInput(String newValue) { if (isIOS) { - // fix: TextFormField onChanged event triggered multiple times when Korean input - // https://github.com/rustdesk/rustdesk/pull/9644 - await Future.delayed(const Duration(milliseconds: 10)); - - if (newValue != _textController.text) return; - _handleIOSSoftKeyboardInput(_textController.text); + _handleIOSSoftKeyboardInput(newValue); } else { _handleNonIOSSoftKeyboardInput(newValue); }