Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed input method candidate box on Windows #1487

Closed
wants to merge 1 commit into from
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