From 55de573a0162f0dc39dd516ccd878513a1a08b33 Mon Sep 17 00:00:00 2001 From: fufesou <13586388+fufesou@users.noreply.github.com> Date: Tue, 27 Aug 2024 19:30:51 +0800 Subject: [PATCH] fix: keyboard input, mulit windows (#9189) Signed-off-by: fufesou --- flutter/lib/models/input_model.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flutter/lib/models/input_model.dart b/flutter/lib/models/input_model.dart index 4cdbf88e5..fd1beb6b5 100644 --- a/flutter/lib/models/input_model.dart +++ b/flutter/lib/models/input_model.dart @@ -784,6 +784,9 @@ class InputModel { if (!isInputSourceFlutter) { bind.sessionEnterOrLeave(sessionId: sessionId, enter: enter); } + if (enter) { + bind.setCurSessionId(sessionId: sessionId); + } } /// Send mouse movement event with distance in [x] and [y].