Capturing wrong numbers with numeric keypad when decimal separator is not dot

Description

In many countries the decimal separator is ',' But the numeric keypad of computers provides only the '.' as decimal separator.

When typing decimal numbers you have to use the ',' far on the keyboard.
It's not efficient and is prone to errors if the user doesn't check the resulting number.

Desktop software like libreoffice and m$excel allows to use the '.' of the numeric keypad and transforms it in a ','.

Regards,

Carlos Ruiz

Environment

None

Activity

Show:
Carlos Ruiz
December 20, 2018, 11:37 AM

According to the problems reported - it seems the approach here has problems specifically in Windows with keyboards that return "," in the numeric keyboard.

Carlos Ruiz
December 20, 2018, 1:28 PM

Solved - tested 20 combinations
linux chrome, firefox, chromium
windows chrome, firefox
keyboard returning comma
keyboard returning dot
language with comma separator
language with dot separator

Carlos Ruiz
January 10, 2019, 11:02 PM

reopening ticket:

not working with French:
https://groups.google.com/d/msg/idempiere/4ryfOcGRvvc/rH7QGry9CAAJ

And it seems like java 11 changed the behavior of the decimal point for idempiere on French language - before it was , and now is .

Carlos Ruiz
January 17, 2019, 2:24 PM

tested today with french language:

version 6.1 running with java 10 - works fine
version 6.1 running with java 11 - works fine

version 6.2 running with java 11 - problem

made a test downgrading the zk to 8.5.0 in the version 6.2 (attaching patch

)
it works fine

So, definitely this discards a problem with the java 11 version and confirms is a problem with zk 8.6.0.1

Regards,

Carlos Ruiz

Carlos Ruiz
January 17, 2019, 8:29 PM

Solution found
https://tracker.zkoss.org/browse/ZK-4198

Thinking about the best way to implement it here.

Fixed

Assignee

Carlos Ruiz

Reporter

Carlos Ruiz

Labels

None

Tested By

None

Priority

Major
Configure