From 75a14fea23307ed1f3d8df5d447bd47fcea03b45 Mon Sep 17 00:00:00 2001 From: fufesou <13586388+fufesou@users.noreply.github.com> Date: Mon, 23 Sep 2024 17:31:37 +0800 Subject: [PATCH] fix: keyboard, change mode, await, on input source changed (#9434) Signed-off-by: fufesou --- flutter/lib/models/model.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter/lib/models/model.dart b/flutter/lib/models/model.dart index 084ac1b43..899affa62 100644 --- a/flutter/lib/models/model.dart +++ b/flutter/lib/models/model.dart @@ -839,7 +839,7 @@ class FfiModel with ChangeNotifier { for (final mode in [kKeyMapMode, kKeyLegacyMode]) { if (bind.sessionIsKeyboardModeSupported( sessionId: sessionId, mode: mode)) { - bind.sessionSetKeyboardMode(sessionId: sessionId, value: mode); + await bind.sessionSetKeyboardMode(sessionId: sessionId, value: mode); break; } }