summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.contentMenu.xml
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2016-11-12 20:53:14 +0100
committerOlivier Dony <odo@openerp.com>2016-11-22 12:33:08 +0100
commitb73518fe579f3902171969ce6ac7438bce64f925 (patch)
tree821d4af42902cb6c14b154dfb37b39414a24ffbc /addons/website/static/src/xml/website.contentMenu.xml
parent8f4558574cd9712f08fba34e637e3b3a8bf92830 (diff)
[FIX] web: do not cancel edition on o2m list when pressing Enter
Rev. 3f7d350fe21d9e2afb35a9ce3e2652940e3f259d1 introduced auto-cancellation of the edit mode when the user clicks outside the edited line. The unfortunate downside was the auto-cancellation of the edit mode also when the user presses ENTER while the line is not valid. This is especially annoying when using barcode scanners to fill in values, as scanners usually send an ENTER keystroke at the end of the input sequence. When a many2one field is focused this event will often occur before the autocompletion popup has a chance to open. At that point the line is considered invalid, and the edition mode is cancelled! If no field is considered dirty yet on the line this simply drops the whole line, otherwise it will open a navigation confirmation popup. Both results equally prevent the use of barcode scanners. This patch makes sure the edit mode is only cancelled when the user indeed clicked outside the line, and not for other cases where save() is requested, such as an ENTER keystroke.
Diffstat (limited to 'addons/website/static/src/xml/website.contentMenu.xml')
0 files changed, 0 insertions, 0 deletions