Repository navigation
Focus the first field of a new receipt or line, and let Enter pick a suggestion - #115
Merged
Merged
Conversation
…suggestion The dialog focused itself after the field's autofocus, so typing went nowhere until the field was clicked. Enter with the suggestion list open submitted the form on key down, saving the half-typed text instead of the highlighted name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012weRUwFTaoHfFvd7L4x12i
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012weRUwFTaoHfFvd7L4x12i
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.
Requested by Frognar · project thread
What changes
AutoFocus, butMudDialog(default focusElement) then focused its own container and took the focus back. These dialogs now useDefaultFocus.Nonewhen the field focuses itself. Editing an existing receipt or line, and duplicating one, behave as before.Allinstead ofAllegro). A small global key-down handler (wwwroot/js/keyboard.js) cancels the browser default only for an input withrole="combobox"andaria-expanded="true". Once the list is closed, Enter saves as before.Verified
Ran the API with a local Postgres and drove it in headless Chromium (Playwright):
All, ArrowDown toAllegroand Enter leaves the dialog open withAllegroin the field. A second Enter saves a receipt forAllegro.DIV, and the first Enter saved the receipt.Generated by Claude Code