When entering decimal values, the app uses the “,” as separator which is correct on my case. But when using the numeric keyboard would it be possible for the app to assume that when I hit the “.” key that key would assume either “.” or “,” based on the default decimal separator that the user chose?
I remember this
as a result of Decimal separator on French keyboard
Which locales / keyboard on your host?
Thanks for your response. So, as I understand the problem was solved for the French keyboards but not for other languages? I found the same complain with the Spanish keyboard (by Lister - https://forum.portfolio-performance.info/u/lister).
Regarding your question I’m using the Portuguese keyboard.
I don´t know anything about Java but I believe that other software are not using configuration based on the different keyboards but rather use a translation model based on the system configuration of the user which turns the solution global.
If Java as that capability, that I don’t know ![]()
Well, Java derives the decimal separator from the locale - here Portuguese and therefore the “,”. The application then gets the input string and converts it to a number using the locale. I implemented a workaround for the French keyboards (that is what was reported) after I checked that Excel behaves the same.
But I like the idea to actually rewire the key on the numeric keypad. I have to see if I can get to the keypress event.