Fix barcode behavor to keep selected option

Fix barcode behavor to allow the same kind of behavor when pressing 'enter' and
clicking on search button.

Change-Id: I8ba4c44d343b6f7b2838c0e44ad2812beac8b307