mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-14 12:25:21 +00:00
6852429: IME should call ImmIsUIMessage() or DefWindowProc() when it receives WM_IME_SETCONTEX
Reviewed-by: peytoia
This commit is contained in:
parent
f2d770bf73
commit
7db63ef95f
@ -3739,11 +3739,12 @@ void AwtComponent::SetCandidateWindow(int iCandType, int x, int y)
|
||||
|
||||
MsgRouting AwtComponent::WmImeSetContext(BOOL fSet, LPARAM *lplParam)
|
||||
{
|
||||
// This message causes native status window shown even it is disabled. So don't
|
||||
// let DefWindowProc process this message if this IMC is disabled.
|
||||
// If the Windows input context is disabled, do not let Windows
|
||||
// display any UIs.
|
||||
HIMC hIMC = ImmGetContext();
|
||||
if (hIMC == NULL) {
|
||||
return mrConsume;
|
||||
*lplParam = 0;
|
||||
return mrDoDefault;
|
||||
}
|
||||
|
||||
if (fSet) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user