Skip to content

[FIX] web_decimal_numpad_dot: Restore keyboard navigation#1158

Merged
pedrobaeza merged 1 commit into
OCA:11.0from
Tecnativa:11.0-web_decimal_numpad_dot-fix_keyboard_navigation
Jan 18, 2019
Merged

[FIX] web_decimal_numpad_dot: Restore keyboard navigation#1158
pedrobaeza merged 1 commit into
OCA:11.0from
Tecnativa:11.0-web_decimal_numpad_dot-fix_keyboard_navigation

Conversation

@yajo

@yajo yajo commented Jan 18, 2019

Copy link
Copy Markdown
Member

When #1154 switched to using keydown as the event to trigger the numpad dot replacement, it was actually disabling upstream's _onKeyDown(), which in turn disabled the keyboard navigation.

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

@Tecnativa

When OCA#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
@yajo yajo self-assigned this Jan 18, 2019
@yajo yajo added this to the 11.0 milestone Jan 18, 2019

@cubells cubells left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

LGTM

Code review and test

@pedrobaeza pedrobaeza merged commit e69ad8b into OCA:11.0 Jan 18, 2019
@pedrobaeza pedrobaeza deleted the 11.0-web_decimal_numpad_dot-fix_keyboard_navigation branch January 18, 2019 11:25
@yajo

yajo commented Jan 21, 2019

Copy link
Copy Markdown
Member Author

Cherry-picked in v12 at 67f76e8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants