From e2a42ff4af2cae01a9ee2558b11a410244411028 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Fri, 18 Jan 2019 07:33:45 +0000 Subject: [PATCH] [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]: https://github.com/odoo/odoo/blob/19558129f0e2d5c9940f6fa95534840f8f025547/addons/web/static/src/js/fields/abstract_field.js#L41 --- web_decimal_numpad_dot/static/description/index.html | 2 +- web_decimal_numpad_dot/static/src/js/numpad_dot.js | 11 ++--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/web_decimal_numpad_dot/static/description/index.html b/web_decimal_numpad_dot/static/description/index.html index 7ebdcf75b..bbadf8a38 100644 --- a/web_decimal_numpad_dot/static/description/index.html +++ b/web_decimal_numpad_dot/static/description/index.html @@ -3,7 +3,7 @@ - + Web - Numpad Dot as decimal separator