Skip to content

[FR]Set focus and select the quantity field in the Add/remove stock dialog #11511

Closed as not planned

Description

@martonmiklos

Please verify that this feature request has NOT been suggested before.

  • I checked and didn't find a similar feature request

Problem statement

When opening this dialog:

Image

In almost every case you want to enter a number and hit submit (maybe you add notes, but it clearly happens after you entered the number).

It would help the overall UX if the 0 number would be always selected and would have focus.

Suggested solution

Set the focus and selection when this dialog opens.

Describe alternatives you've considered

Manually selecting the input :)

Examples of other systems

No response

Do you want to develop this?

  • I want to develop this.

Activity

  1. SchrodingersGat commented on Mar 13, 2026

    @SchrodingersGat
    Member

    Sounds fair enough, happy to review a PR!

  2. martonmiklos commented on Mar 13, 2026

    @martonmiklos
    ContributorAuthor

    Sounds fair enough, happy to review a PR!

    I need to get my frontend debug setup working again and I will dive into this.

  3. added
    User InterfaceRelated to the frontend / User Interface
    and removed
    triage:not-checkedItem was not checked by the core team
    on Mar 13, 2026
  4. added a commit that references this issue on Mar 16, 2026
    3a5f426
  5. martonmiklos commented on Mar 16, 2026

    @martonmiklos
    ContributorAuthor

    Sounds fair enough, happy to review a PR!

    When testing this the following came into my mind:
    It would be useful if the form could be submitted with just hitting enter.
    i.e. you click on add stock, enter the number on the numpad -> enter -> done.
    To allow the "instant" number change I had to move the focus to the input widget so the enter does not submits the form.
    Any thoughts?

  6. added a commit that references this issue on Mar 16, 2026
    d28b282
  7. github-actions commented on May 15, 2026

    @github-actions
    Contributor

    This issue seems stale. Please react to show this is still important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

User InterfaceRelated to the frontend / User InterfaceenhancementThis is an suggested enhancement or new featureinactiveIndicates lack of activity

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions