web/web_decimal_numpad_dot
Jairo Llopis 32efd460d4
[FIX] web_decimal_numpad_dot: Restore keyboard navigation
When https://github.com/OCA/web/pull/1154 switched to using `keydown` as the event to trigger the numpad dot replacement, it was actually [disabling upstream's `_onKeyDown()`][1], which in turn disabled the keyboard navigation.

To fix this situation, I replaced the method that is being used to directly override `_onKeyDown`.

[1]: 19558129f0/addons/web/static/src/js/fields/abstract_field.js (L41)
2019-01-18 07:33:45 +00:00
..
i18n [UPD] Update web_decimal_numpad_dot.pot 2018-06-24 10:28:10 +00:00
static [FIX] web_decimal_numpad_dot: Restore keyboard navigation 2019-01-18 07:33:45 +00:00
views [MIG] web_decimal_numpad_dot: Migration to 10.0 2017-12-18 10:39:04 +01:00
README.rst [MIG] web_decimal_numpad_dot: Migration to 11.0 2017-12-18 11:06:01 +01:00
__init__.py [MIG] web_decimal_numpad_dot: Migration to 11.0 2017-12-18 11:06:01 +01:00
__manifest__.py [FIX] web_decimal_numpad: float_time format (#1068) 2018-10-10 08:43:25 +01:00

README.rst

.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
   :target: http://www.gnu.org/licenses/agpl
   :alt: License: AGPL-3

===============================
Numpad Dot as decimal separator
===============================

Allows using numpad dot to enter period decimal separator even in localizations
where comma is used instead of period.

Usage
=====

Whenever on a float or monetary input field pressing numpad dot produces the
proper decimal separator for the active localization.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
   :alt: Try me on Runbot
   :target: https://runbot.odoo-community.org/runbot/web/162/11.0

Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/web/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing detailed and welcomed feedback.

Credits
=======

Contributors
------------

* Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es>
* Pedro M. Baeza <pedro.baeza@tecnativa.com>
* Ana Juaristi <anajuaristi@avanzosc.es>
* Omar Castiñeira Saavedra <omar@comunitea.com>
* Oliver Dony <@odony>
* Wim Audenaert <Wim.Audenaert@ucamco.com>
* David Vidal <david.vidal@tecnativa.com>
* Jairo Llopis <jairo.llopis@tecnativa.com>

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.