Define input type for Windows 10 touch keyboard from a JavaFX application

若如初见. 提交于 2019-12-06 09:37:09

问题


I have a working JavaFX app running on windows 10. I would like to use the touch-keyboard in a similar to MSDN user input scope to change the touch keyboard HOWEVER there is no way to interact with it. All textfieeds open the Default keyboard. I would like to find the closest to JavaFX as possible solution.

Things I have tries so far:

  1. Tried to use the WM_MESSAGE to trick the OS, see Here. This is a messy workaround that does not work on windows 10.
  2. Encapsulating the WM_MESSAGE or InputScope object in an executable, and calling it from JNI only creates a one-way transition from app to keyboard. it will not suffice.
  3. Using a custom keyboard or the JAvaFX touch keyboard (see here is not a valid solution as these keyboards look a bit messy, and they require some twirking we already know exist.
  4. set-numeric-layout-for-windows-onscreen-keyboard-programmatically not working.
  5. activating-touch-enabled-controls-in-javafx is irrelevant.

来源:https://stackoverflow.com/questions/44554738/define-input-type-for-windows-10-touch-keyboard-from-a-javafx-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!