changeset 12530:9f914df5fc4c

8184016: Text in native popup is not always updated with Sogou IME Reviewed-by: ssadetsky
author ssreedharan
date Thu, 12 Oct 2017 10:19:56 -0400
parents 3b3bf3e95042
children f2925375b4e2
files src/windows/native/sun/windows/awt_Component.cpp
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/windows/awt_Component.cpp	Thu Oct 12 10:16:05 2017 -0400
+++ b/src/windows/native/sun/windows/awt_Component.cpp	Thu Oct 12 10:19:56 2017 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -3827,12 +3827,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;
     }