From 379f6410c18089dcac7e4e7323fd146f9d605b0b Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Wed, 17 Apr 2019 12:22:14 +0000 Subject: [FIX] barcodes: Whitelist search inputs Before this patch, on mobile chrome, if user had focused in a `` element and writes something, the value never lands in the target input element and the on-screen keyboard hides. closes odoo/odoo#37843 X-original-commit: 12d4040b7196ae8f7a27d0081638413b52340019 Signed-off-by: Nicolas Martinelli (nim) --- addons/barcodes/static/src/js/barcode_events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/barcodes/static/src') diff --git a/addons/barcodes/static/src/js/barcode_events.js b/addons/barcodes/static/src/js/barcode_events.js index 3f38ea38e37..5fcd68ac680 100644 --- a/addons/barcodes/static/src/js/barcode_events.js +++ b/addons/barcodes/static/src/js/barcode_events.js @@ -219,7 +219,7 @@ var BarcodeEvents = core.Class.extend(mixins.PropertiesMixin, { */ _listenBarcodeScanner: function (e) { if ($(document.activeElement).not('input:text, textarea, [contenteditable], ' + - '[type="email"], [type="number"], [type="password"], [type="tel"]').length) { + '[type="email"], [type="number"], [type="password"], [type="tel"], [type="search"]').length) { $('body').append(this.$barcodeInput); this.$barcodeInput.focus(); } -- cgit v1.2.3