Skip to content

Commit a9e084d

Browse files
Fixed input method candidate box on Windows 11
1 parent 5179f4e commit a9e084d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

modules/juce_gui_basics/native/juce_Windowing_windows.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4298,8 +4298,14 @@ class HWNDComponentPeer final : public ComponentPeer
42984298

42994299
case WM_IME_SETCONTEXT:
43004300
imeHandler.handleSetContext (h, wParam == TRUE);
4301+
43014302
lParam &= ~(LPARAM) ISC_SHOWUICOMPOSITIONWINDOW;
4302-
return ImmIsUIMessage (h, message, wParam, lParam);
4303+
// On Windows 11, directly returning from this function
4304+
// will cause the input method candidate box to not display correctly.
4305+
// The window's default message handler should be used
4306+
// to continue processing this message.
4307+
// Older version of the code is this: return ImmIsUIMessage (h, message, wParam, lParam);
4308+
break;
43034309

43044310
case WM_IME_STARTCOMPOSITION: imeHandler.handleStartComposition (*this); return 0;
43054311
case WM_IME_ENDCOMPOSITION: imeHandler.handleEndComposition (*this, h); return 0;

0 commit comments

Comments
 (0)