[FIX] point_of_sale: Some azerty barcode reader setups would press 'shift' for each number, and those shift would end the barcode recognition. keypress ignores shifts and fixes the problem

bzr revid: fva@openerp.com-20130909154740-bjlp553wt11l1u18
This commit is contained in:
Frédéric van der Essen 2013-09-09 17:47:40 +02:00
parent 681a093c5b
commit 2356864eb4
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ function openerp_pos_devices(instance,module){ //module is instance.point_of_sal
// The barcode readers acts as a keyboard, we catch all keyup events and try to find a
// barcode sequence in the typed keys, then act accordingly.
$('body').delegate('','keyup', function (e){
$('body').delegate('','keypress', function (e){
//console.log('keyup:'+String.fromCharCode(e.keyCode)+' '+e.keyCode,e);
//We only care about numbers
if (e.keyCode >= 48 && e.keyCode < 58){