fix(gate): suppress touch keyboard on scan field; auto-submit wedge burst without Enter suffix#1077
Merged
Conversation
…urst without Enter suffix The scan input used inputmode="text", so every tap on the kiosk (including the tap-anywhere refocus) summoned the Windows touch keyboard over the verdict card, and submission depended entirely on the imager appending an Enter suffix — with no suffix, the scanned characters just sat in the field. - inputmode="none" keeps the touch keyboard down while the field still receives keyboard-wedge input. - A quiet-timer auto-submit fires 300ms after a scan burst of 5+ chars, so a missing/lost Enter-suffix config no longer strands the scan. An Enter suffix still submits immediately and cancels the timer. - A keyboard toggle next to the field flips inputmode back to text for manually typing a damaged/unreadable code (auto-submit off in that mode). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Reviewed commit ccf5f51 — no issues found. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem (reported from the gate)
Scanning on the kiosk tablet: the on-screen keyboard pops up over the verdict card, and a scan's ~7 characters land in the field without auto-submitting.
Diagnosis notes:
2c3fe2d5..b58303d0, PRs Gate PIN UX (Phase 1): set/reset audit + first-time confirm & double-entry #1071–Disable gate PINs; plain no-PIN override button #1075) never touched the scan input, the submit handler, or the focus logic.inputmode="text"and the tap-anywhere→refocus have shipped since the first gate PR (Gate Admissions (gate scanner + personal staff PINs) — to QA #1066).Fix
inputmode="none"on the scan field — the touch keyboard stays down; keyboard-wedge (HID) input still lands in the focused field.inputmodeback totextso the touch keyboard comes up for typing a damaged/unreadable code; the quiet-timer is disabled in manual mode so a slow human typist isn't submitted mid-entry.Testing
dotnet build Humans.slnx -v quiet— clean (warnings pre-existing).🤖 Generated with Claude Code