Skip to content

fix(gate): suppress touch keyboard on scan field; auto-submit wedge burst without Enter suffix#1077

Merged
peterdrier merged 1 commit into
mainfrom
gate-scan-input
Jul 1, 2026
Merged

fix(gate): suppress touch keyboard on scan field; auto-submit wedge burst without Enter suffix#1077
peterdrier merged 1 commit into
mainfrom
gate-scan-input

Conversation

@peterdrier

Copy link
Copy Markdown
Owner

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:

Fix

  • inputmode="none" on the scan field — the touch keyboard stays down; keyboard-wedge (HID) input still lands in the focused field.
  • Quiet-timer auto-submit: a wedge scan arrives as a fast burst, so 300 ms after the burst goes quiet with ≥ 5 chars in the field, the form submits. An Enter suffix still submits immediately (and cancels the timer), so a correctly-configured imager behaves exactly as before.
  • Manual-entry toggle (keyboard icon next to the field): flips inputmode back to text so 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).
  • No e2e coverage exists for the gate scan input; behavior needs a check on the OneRugged tablet (scan with and without Enter suffix, toggle manual entry).

🤖 Generated with Claude Code

…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>
@claude

claude Bot commented Jul 1, 2026

Copy link
Copy Markdown

Reviewed commit ccf5f51 — no issues found.

@peterdrier peterdrier merged commit fca2bd2 into main Jul 1, 2026
10 checks passed
@peterdrier peterdrier deleted the gate-scan-input branch July 1, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant