On Ctrl+F mark content of search box if box already focused.

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

On Ctrl+F mark content of search box if box already focused.

Post by eradicator »

What?
Like in Firefox (and probably other browsers): If the search box is already focused then mark/select all it's content when ctrl-f is pressed a second time.
Whaat?
Behavior of the search box should be as following:
  1. Press "e" -> open inventory, search box is unfocused.
  2. Press "ctrl+f" -> focus search box, typing goes into search box
  3. (new) Press "ctrl+f" again -> text in search box is marked, typing more text replaces old search term and starts a new search.
Why
When all content is marked the next letter typed will replace the previous search-term allowing to easily search several items in quick succession.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Jap2.0
Smart Inserter
Smart Inserter
Posts: 2424
Joined: Tue Jun 20, 2017 12:02 am
Contact:

Re: On Ctrl+F mark content of search box if box already focused.

Post by Jap2.0 »

I never knew this was a thing (outside of Factorio). I second this.
There are 10 types of people: those who get this joke and those who don't.
Post Reply

Return to “Ideas and Suggestions”