We have moved to a new Sailfish OS Forum. Please start new discussions there.

Bug: Wrong delimiter key in numeric keyboard (Swiss)

asked 2014-02-04 09:07:04 +0300

alex25 gravatar image

updated 2014-02-04 12:58:59 +0300

veskuh gravatar image

In HTML5 there exists a tag for form field (type="number") that triggers the browser to show only a numeric keyboard. In Switzerland we use the "." key as delimiter. However the Browser on the Jolla device only shows the "," key. This makes it impossible to enter decimal values in such field.
Sample page, e.g. at http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_input_type_number (right side).

edit retag flag offensive close delete

2 Answers

Sort by » oldest newest most voted

answered 2014-02-04 11:03:15 +0300

veskuh gravatar image

Thanks for reporting this. Numeric keypad at the moment selects between "." and "," based on device language. Like your example illustrates this is problematic solution, since sometimes proper layout is different than device language and changing device language requires restart of user interface.

We are considering alternatives to solving this. One idea would be to offer alternative separator behind long tap of separator, another solution would be having similiar kind of change layout button as normal virtual keyboard layout has.

edit flag offensive delete publish link more


Another option, probably the cleanest one, is to work out the language of the web page (or that particular field) and set the delimiter accordingly. You may have German vkb (delimiter: comma), German language (delimiter: comma) activated in Sailfish but be visiting an English webpage (delimiter: dot): The server in the background would expect the dot as delimiter. (And to cater for misinterpretations by the software, still tap-and-hold accent the other delimiter.)

jgr ( 2014-02-04 11:26:14 +0300 )edit

@veskuh: By the way, if you write "We are considering ..." you should tag that question with "roadmap".

jgr ( 2014-02-04 11:28:20 +0300 )edit

iOS and Android always displays both the delimiters.

alex25 ( 2014-02-04 11:28:58 +0300 )edit

@veskuh: I'd prefer a more fine-grained locale settings https://together.jolla.com/question/931/enable-more-refined-locale-settings-that-are-respected-by-system-and-3rd-party-apps/ That way I can use English as UI language, but still get Swedish delimiter, metric units, "correct" date format etc

Mohjive ( 2014-02-04 12:02:51 +0300 )edit

@jgr Yes, that would be the cleanest solution. Web page language detection is not something we have studied yet, we may do a simpler solution first.

@alex25 yes, that alternative should also be considered.

veskuh ( 2014-02-04 12:59:15 +0300 )edit

answered 2018-01-06 17:05:50 +0300

h.berd gravatar image

updated 2018-01-06 17:06:15 +0300

can anybody please make a patch for this problem via openrepos? jolla couldn't fix this since 2014 :-( how hard can it be?

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools



Asked: 2014-02-04 09:07:04 +0300

Seen: 556 times

Last updated: Jan 06 '18