mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-23 19:49:05 +08:00
revert: 9644, iOS, Korean input (#9857)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
6f0cb3b8c2
commit
0f070b0108
@ -269,14 +269,10 @@ class _RemotePageState extends State<RemotePage> with WidgetsBindingObserver {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> 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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user