Apply wangxi's patch for dual button triggering barcode scan feature.