Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion modules/juce_gui_basics/native/juce_Windowing_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4298,8 +4298,14 @@ class HWNDComponentPeer final : public ComponentPeer

case WM_IME_SETCONTEXT:
imeHandler.handleSetContext (h, wParam == TRUE);

lParam &= ~(LPARAM) ISC_SHOWUICOMPOSITIONWINDOW;
return ImmIsUIMessage (h, message, wParam, lParam);
// On Windows 11, directly returning from this function
// will cause the input method candidate box to not display correctly.
// The window's default message handler should be used
// to continue processing this message.
// Older version of the code is this: return ImmIsUIMessage (h, message, wParam, lParam);
break;

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