gpt4 book ai didi

JavaFX 虚拟键盘布局

转载 作者:行者123 更新时间:2023-12-04 17:54:44 29 4
gpt4 key购买 nike

我这样使用 JavaFX 虚拟键盘:

-Dcom.sun.javafx.isEmbedded=true 
-Dcom.sun.javafx.touch=true
-Dcom.sun.javafx.virtualKeyboard=javafx

如何将其设置为德语布局?

最佳答案

不幸的是,它被报告为一个错误,似乎还没有被修复:

Hi, I've been playing on with the virtual keyboard lately on my desktop by running with -Dcom.sun.javafx.virtualKeyboard=javafx and I could not help but notice that the virtual keyboards for text, url and email inputs all have a QWERTY key layout.

I currently run on a system configured to en_AU with a US keyboard but even if I force the JVM to start with fr_FR support as the default locale, the layout of the virtual keyboard remains QWERTY. If I go to Windows' regional settings and change the input method from au+US keyboard (removing it completely) to fr+FR keyboard the virtual keyboard in JavaFX remains QWERTY as well.

I haven't tested on embedded (Raspberry Pi) yet to check if the same was happening on those systems.

This is an issue: if we run a kiosk application on embedded + touch screen, French customers expect to have access to an AZERTY virtual keyboard. Furthermore, if we intend to run an application that is accessible by a wide range of customers, we may want to change the virtual keyboard layout depending of the language that has been selected by the user on the welcome screen (ie: users selecting English would get an QWERTY virtual keyboard, users selecting French would get an AZERTY keyboard).

参见:[Keyboard] Support alternative key layout for virtual keyboard

关于JavaFX 虚拟键盘布局,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41240545/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com