Initial Edit Box Focus

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

vinnief
Long Handed Inserter
Long Handed Inserter
Posts: 51
Joined: Sat Feb 10, 2018 3:39 am
Contact:

Initial Edit Box Focus

Post by vinnief »

TL;DR, What?
Dialog boxes (for example "Select a signal") should give focus to the quantity edit box (if present) upon opening.
Why?
It should be possible to input numbers with the left hand, without the right hand leaving the mouse. Since TAB for cycling the focused edit box doesn't work, this is the next best thing. Most dialogs have only one edit box that is heavily used anyway.

Note that for this to work best, it would also be nice if edit boxes ignored non-numeric keypresses and instead passed them through to the normal keyboard handler. Currently if I give focus to a numeric edit box and press "E", it puts the letter E in the edit box which is never useful. Instead it should close the dialog (after accepting the change). This would be really nice for quickly configuring assemblers and the like.
Muche
Smart Inserter
Smart Inserter
Posts: 1006
Joined: Fri Jun 02, 2017 6:20 pm
Contact:

Re: Initial Edit Box Focus

Post by Muche »

In some/most cases, the edit field is indeed being focused by default upon opening the Select signal dialog window.
However, depending on screen resolution / UI scale, it may happen that the dialog window is repositioned and the edit field loses the focus. See 126429 Inserter logistic connection quantity annoyance.

Regarding non-numeric inputs, if the hidden setting use-formulas-in-number-input-fields is enabled (it's enabled by default), a formula can be entered into the field, which is then evaluated on confirming the dialog. See Allow pressing E to confirm number input fields, by dropping support for scientific notation.
Post Reply

Return to “Ideas and Suggestions”