From e0667833d5394be7f66da63440c15708818802d3 Mon Sep 17 00:00:00 2001 From: fufesou Date: Sun, 2 Apr 2023 14:39:54 +0800 Subject: [PATCH] comment Signed-off-by: fufesou --- src/server/input_service.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/server/input_service.rs b/src/server/input_service.rs index c5011a856..7d3229c12 100644 --- a/src/server/input_service.rs +++ b/src/server/input_service.rs @@ -1274,7 +1274,20 @@ fn check_update_input_layout() { fn translate_keyboard_mode(evt: &KeyEvent) { // --server could not detect the input layout change. // This is a temporary workaround. + // // There may be a better way to detect and handle the input layout change. + // while ((bRet = GetMessage(&msg, NULL, 0, 0)) != 0) + // { + // ... + // if (msg.message == WM_INPUTLANGCHANGE) + // { + // // handle WM_INPUTLANGCHANGE message here + // check_update_input_layout(); + // } + // TranslateMessage(&msg); + // DispatchMessage(&msg); + // ... + // } #[cfg(target_os = "windows")] check_update_input_layout();