summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2015-03-11 17:42:54 +0100
committerOlivier Dony <odo@openerp.com>2015-03-11 17:59:46 +0100
commitdf4bd736f10d8c8ca646fbef58927bf7446146f0 (patch)
tree4b49f39e6b970320905406c5c4db7be69754f684 /addons/website/static/src/xml
parentdb45099a27fd09e8ca701628aaa43c95815053ae (diff)
[FIX] search view: autocomplete: further improve support for rapid barcode scanning
This patch removes the asynchronous code that was still used to open the autocompletion drawer. Even with the setTimeout delay forced to 0, the asynchronous handling meant the final ENTER keyUp event could be processed before the opening of the autocompletion drawer related to the last key pressed. This would trigger the search with the search string of the previous autocompletion popup, missing the last few keys. Also handle ENTER at keyDown, because in some rare cases a barcode scanner may emit only the keyDown event for ENTER, without the corresponding keyUp, causing a merge of two successive scanned barcodes. Based on many tests conducted with different barcode scanners, the only thing that is guaranteed is the correct order of the keyPress events for all regular characters, and the fact that the ENTER keyDown and/or keyUp will always be sent after them. All other events can be mixed or simply missing if you make a rapid succession of scans, especially if done with a long series of barcodes. Scanners tested (with 1ms data transmission delay): - Honeywell Eclipse MS5145 - Dacomex Slim 50mm CCD scanner
Diffstat (limited to 'addons/website/static/src/xml')
0 files changed, 0 insertions, 0 deletions