8184016: Text in native popup is not always updated with Sogou IME
Reviewed-by: ssadetsky
--- a/jdk/src/java.desktop/windows/native/libawt/windows/awt_Component.cpp Mon Jul 10 14:41:54 2017 -0700
+++ b/jdk/src/java.desktop/windows/native/libawt/windows/awt_Component.cpp Thu Jul 13 12:14:59 2017 +0530
@@ -3871,12 +3871,14 @@
{
if (!m_useNativeCompWindow) {
if (subMsg == IMN_OPENCANDIDATE) {
- m_bitsCandType = subMsg;
+ m_bitsCandType = bitsCandType;
InquireCandidatePosition();
} else if (subMsg == IMN_OPENSTATUSWINDOW ||
subMsg == WM_IME_STARTCOMPOSITION) {
m_bitsCandType = 0;
InquireCandidatePosition();
+ } else if (subMsg == IMN_SETCANDIDATEPOS) {
+ InquireCandidatePosition();
}
return mrConsume;
}