Browse Source

windisplay: Fix IME result not showing up without `ime-aware true`

rdb 10 months ago
parent
commit
0404febf96
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/windisplay/winGraphicsWindow.cxx

+ 1 - 1
panda/src/windisplay/winGraphicsWindow.cxx

@@ -2064,7 +2064,7 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
     // the actual value passed to WM_CHAR seems to be poorly defined.  Now we
     // the actual value passed to WM_CHAR seems to be poorly defined.  Now we
     // are using RegisterClassW etc., which means WM_CHAR is absolutely
     // are using RegisterClassW etc., which means WM_CHAR is absolutely
     // supposed to be utf-16.
     // supposed to be utf-16.
-    if (!_ime_open) {
+    if (!_ime_open || !ime_aware) {
       _input->keystroke(wparam);
       _input->keystroke(wparam);
     }
     }
     break;
     break;