-
-
Notifications
You must be signed in to change notification settings - Fork 968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter string in station window breaks flow in user interface #8875
Comments
If you press the ESC, the focus is lost and you can use the hotkeys. |
That does work indeed, thanks. But it still feels counter intuitive. |
To solve the issue it's just about removing one line of code in rail_gui.cpp:
However, what should we do here ideally? Let people jump into being able to filter or keep using the hotkeys? Note that the filter doesn't show if no NewGRF with stations are loaded. |
Don't break people's workflows by stealing the hotkeys. |
Version of OpenTTD
1.11.0 RC 1
Expected result
The newly created filter string feature ( #8706 ) should not interfere with the functionality of the hotkeys
Actual result
The filter string textbox automatically gets the focus. This interrupts the common workflow, since you can no longer use hotkeys (i.e. R or DEL), because they now modify the filter string instead of doing what they are supposed to do. It's now impossible to remove a station tile by pressing R when the build-station-window is open, you have to use the bulldozer button.
Steps to reproduce
The Town Directory window has a similar filter textbox, but it does not automatically get the focus, and that works just fine. Removing the auto focus on the text field will probably fix the issue.
The text was updated successfully, but these errors were encountered: