--- old/src/java.desktop/share/classes/java/awt/Component.java 2017-08-15 15:41:04.000000000 +0100 +++ new/src/java.desktop/share/classes/java/awt/Component.java 2017-08-15 15:41:04.000000000 +0100 @@ -5022,6 +5022,12 @@ tpeer.handleEvent(e); } } + + if (SunToolkit.isTouchKeyboardAutoShowEnabled() && + (toolkit instanceof SunToolkit) && + ((e instanceof MouseEvent) || (e instanceof FocusEvent))) { + ((SunToolkit)toolkit).showOrHideTouchKeyboard(this, e); + } } // dispatchEventImpl() /*