Search code examples
windowsjavafxtouchtextfieldon-screen-keyboard

Does on screen keyboard of Windows 10 works with JavaFX TextFields?


I will be developing a JavaFX app for Windows 10. Does anyone know whether a JavaFX TextField on focus can trigger Windows 10 to show up its on screen keyboard?

Your experience is much appreciated!


Solution

  • JavaFX knows how to notify the on-screen touch keyboard HOWEVER we did not find a way to open a specific keyboard type according to the textfield value type.

    Other than that assume that the keyboard will always hide the buttom 1/3 part of your app - so that IF you need that real-estate to be active when user types input in - it can't be done.

    we are only able to use default layout - see Touch keyboard index on https://msdn.microsoft.com/en-us/library/windows/apps/mt280229.aspx

    A follow up on changing they keyboard layout is here:Set numeric layout for windows onscreen keyboard programmatically