Enter key in barcode field should not submit the user edit form

Description

When working at the patron help desk I would like to enable a patron. The patron's user records already exists, but the barcode field is empty and the status is disabled.

I open the patron's user edit form, put the cursor into the barcode field and get the barcode from the patron's card either by scanning the printed barcode or by reading the rfid tag. The barcode field is filled with the barcode. In addition the barcode scanner or rdif reader sends an enter key to indicate that the last character sent was the last character of the barcode. The enter key from the scanner or reader is exactly the same as the enter key from the keyboard because the scanner/reader is connected as a usb keyboard.

Expected result: The user edit form remains open so that I can also change the status from disabled to enabled and set the new expiration date. I can review all fields that I have changed before submitting them.

Actual result: The enter key from the scanner/reader immediately saves all changes and closes the form.

This is also an accessibility issue because it violates WCAG 2.0 Success Criterion 3.3.4 "Error Prevention" https://www.w3.org/TR/UNDERSTANDING-WCAG20/minimize-error-reversible.html

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

1

Checklist

hide

TestRail: Results

Activity

Show:

Theodor Tolstoy (One-Group.se) April 5, 2018 at 12:20 PM

Works fine!
I also made sure the Barcode field on Checkout is not affected.

Julian Ladisch March 27, 2018 at 3:58 PM

: Thanks, your fix on folio-snapshot-stable and folio-testing disabled the enter key the scanner sends and works for me.

Julian Ladisch March 27, 2018 at 3:56 PM

: I've uploaded a screencapture/recording uiu-394-scanner-enter-key-barcode.mp4 to this issue.

Khalilah Gambrell February 27, 2018 at 7:20 PM

can you demonstrate this issue OR send a screencapture/recording to and ?

Done

Details

Assignee

Reporter

Priority

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created February 23, 2018 at 1:56 PM
Updated September 4, 2018 at 3:22 PM
Resolved April 5, 2018 at 12:20 PM
TestRail: Cases
TestRail: Runs