8184016: Text in native popup is not always updated with Sogou IME
authorpsadhukhan
Thu, 13 Jul 2017 12:14:59 +0530
changeset 47153 9292a24eb113
parent 47152 9a0442e2131c
child 47154 321b1ce06499
8184016: Text in native popup is not always updated with Sogou IME Reviewed-by: ssadetsky
jdk/src/java.desktop/windows/native/libawt/windows/awt_Component.cpp
--- 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;
     }