PasswordField only captures random subset of characters from a scanned barcode, when using a HID scanner (emulating a keystroke)

When we scan this barcode

using HID scanner from Datalogic

it mimics a Keystroke.

But when a PasswordField is in focus, the scanned barcode inserted into the "text field" of the PasswordFiled component is random subset characters from the actual string. The String should be but what we get is:




This doesn't happen when using a normal textfield and scanning a barcode using a HID scanner.

Please advice if this is a bug or a are we missing something ?