B4J Code Snippet Disable virtual keyboard on embedded devices

Hi,
In my application I am running on Raspberry Pi the javafx virtual keyboard pop ups as soon as I get the focus on some TextFields as expected, but I dont want it because I want to use my own made numeric keyboard, much smaller, that not covers my 7" tft touch display as the javafx default one does.
So after trying some solutions I have found one solution that works perfect so the javafx keyboard never appears.
Instead of running your javafx jar directly do it with the following command:

B4X:
sudo java -Dcom.sun.javafx.isEmbedded=true -Dcom.sun.javafx.virtualKeyboard="none" -Dcom.sun.javafx.touch=true -jar yourapp.jar

This way the soft keyboard is disabled before the app starts fixing the problem.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…