summaryrefslogtreecommitdiff
path: root/addons/barcodes/static
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2018-08-07 15:00:27 +0200
committerNicolas Lempereur <nle@odoo.com>2018-08-08 09:11:06 +0200
commit8ff138a0daf6fcec4a122ec4e98ce3e5000611ed (patch)
treeb29bde872bd1670ff35c8ced325e637011fbf798 /addons/barcodes/static
parent0ab71f124797912b3df39e748552741df430e4fc (diff)
[FIX] barcodes: ok PageUp/Down/Home/End in firefox
Same reason as 8d948d92. In firefox if barcode is installed, for example on a form view the keys to navigate the possible scrolling PageUp/PageDown/Home/End don't work at all. This is caused by the interface barcode catching and differences of the key event handling between firefox and other browser. So in this change, we add these keys so they are not catched by barcode. note: aso backport 5bc29744c so the code is the same between 10 and 11. related to opw-706352 closes #26219
Diffstat (limited to 'addons/barcodes/static')
-rw-r--r--addons/barcodes/static/src/js/barcode_events.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/barcodes/static/src/js/barcode_events.js b/addons/barcodes/static/src/js/barcode_events.js
index bff05aa4636..287989d0efa 100644
--- a/addons/barcodes/static/src/js/barcode_events.js
+++ b/addons/barcodes/static/src/js/barcode_events.js
@@ -115,7 +115,9 @@ var BarcodeEvents = core.Class.extend(mixins.PropertiesMixin, {
e.key === "ArrowUp" || e.key === "ArrowDown" ||
e.key === "Escape" || e.key === "Tab" ||
e.key === "Backspace" || e.key === "Delete" ||
- /F\d\d?/.test(e.key)) {
+ e.key === "Home" || e.key === "End" ||
+ e.key === "PageUp" || e.key === "PageDown" ||
+ e.key === "Unidentified" || /F\d\d?/.test(e.key)) {
return true;
} else {
return false;