8198606: Touch keyboard does not hide, when a text component looses focus
authoralitvinov
Tue, 13 Mar 2018 12:00:55 +0000
changeset 49235 b09417148c93
parent 49234 3375a8039fde
child 49236 9552f0648b53
8198606: Touch keyboard does not hide, when a text component looses focus Reviewed-by: serb, dmarkov
src/java.desktop/windows/native/libawt/windows/awt_Toolkit.cpp
--- a/src/java.desktop/windows/native/libawt/windows/awt_Toolkit.cpp	Mon Mar 12 13:53:20 2018 -0700
+++ b/src/java.desktop/windows/native/libawt/windows/awt_Toolkit.cpp	Tue Mar 13 12:00:55 2018 +0000
@@ -504,8 +504,7 @@
 HWND AwtToolkit::GetTouchKeyboardWindow() {
     const TCHAR wndClassName[] = _T("IPTip_Main_Window");
     HWND hwnd = ::FindWindow(wndClassName, NULL);
-    if ((hwnd != NULL) && ::IsWindow(hwnd) && ::IsWindowEnabled(hwnd) &&
-        ::IsWindowVisible(hwnd)) {
+    if ((hwnd != NULL) && ::IsWindow(hwnd) && ::IsWindowEnabled(hwnd)) {
         return hwnd;
     }
     return NULL;