KP_Decimal should be the locale decimal separator in spinbutton entries

Bug #680597 reported by Margarita Manterola
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Triaged
Wishlist
OpenERP sa GTK client R&D

Bug Description

When entering a number in the spinbutton entry (the one assigned for floats), the KP_Decimal button is always a dot.

In applications like OpenOffice or GNUCash, when users use the keypad in a locale where the decimal separator is a comma, the KP_Decimal button produces a comma. However, in normal GTK applications this is not the case.

This is related to a decision of the people of GTK/X, to follow whatever is printed on the keyboard instead of what the user actually expects to happen:
http://bugs.xfree86.org/show_bug.cgi?id=534

I consider that entering numbers in a quick fashion and respecting the user's spectation takes priority over respecting whatever the manufacturer of the keyboard decided to print on it. In some cases, like in the case of Spanish keyboards, different manufacturers print different stuff on the KP_Decimal key.

I have made a patch for the 5.0.14 version of openerp-cient, that modifies the spinbutton class in order to get the expected behaviour.

As soon as possible I'll be attaching a similar patch for the 6.X versions (I trust that it'll be similar enough, since the change is quite small).

Revision history for this message
Margarita Manterola (marga) wrote :
Revision history for this message
Azazahmed Saiyed (OpenERP) (saz-openerp) wrote :

Hello,

Thanks for your suggestion. It is a very good idea but it is not in the radar for 6.0. We will definitely consider it for the future road maps.

Thanks.

Changed in openobject-client:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Numérigraphe (numerigraphe) wrote :
Revision history for this message
Ravindra Mekhiya(OpenERP) (rme-openerp) wrote :

Hello Experts,

Let the GTK-Client team will decide.

Thanks.

Changed in openobject-client:
assignee: nobody → OpenERP sa GTK client R&D (openerp-dev-gtk)
Revision history for this message
José Pastor (jpg-es) wrote :

Is this Patch disposable for Windows OS and version 5.0.16? How to build it?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.