< prev index next >

src/share/classes/java/awt/Component.java

Print this page

        

@@ -4963,10 +4963,16 @@
             }
             if (tpeer != null) {
                 tpeer.handleEvent(e);
             }
         }
+
+        if (SunToolkit.isTouchKeyboardAutoShowEnabled() &&
+            (toolkit instanceof SunToolkit) &&
+            ((e instanceof MouseEvent) || (e instanceof FocusEvent))) {
+            ((SunToolkit)toolkit).showOrHideTouchKeyboard(this, e);
+        }
     } // dispatchEventImpl()
 
     /*
      * If newEventsOnly is false, method is called so that ScrollPane can
      * override it and handle common-case mouse wheel scrolling.  NOP
< prev index next >