How to return focus to Search Edit box and clear it

General discussion related to "Everything".
Post Reply
mvdeckard
Posts: 18
Joined: Tue Oct 25, 2022 11:46 pm

How to return focus to Search Edit box and clear it

Post by mvdeckard »

Everything 1.5a is working great but there's one last QOL/nitpick setting I can't replicate from Everything 1.4:

1.4: I had ESC key bound to View | Go To | Home, and regardless of focus (being in Search Edit box or results list), cursor would return to Search Edit box and existing text would clear. This was a quick way to get back to square one in a single key.

1.5a: I've bound ESC key to Search Edit | Focus Search Edit, however it doesn't clear the search edit box but instead highlights the search text.

I'm sure there's some .ini tweak somewhere that I'm missing. Thanks
void
Developer
Posts: 15098
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to return focus to Search Edit box and clear it

Post by void »

Please try setting ESC to Search Edit Clear:
  • In Everything, from the Tools menu, click Options.
  • Click the Keyboard tab on the left.
  • To the right of show commands containing, search for: clear
  • Select Search Edit | Clear
  • Click Add....
  • Change Use shortcut in to: Global
  • Click in the box under Shortcut key and press ESC.
  • Click OK.
  • Click OK.


There's also the History | Home command.
However, there's currently a bug preventing the search box from being focused.
I'll have a fix soon..
mvdeckard
Posts: 18
Joined: Tue Oct 25, 2022 11:46 pm

Re: How to return focus to Search Edit box and clear it

Post by mvdeckard »

Thanks for the reply, I got it figured out soon after I submitted the post for approval, but I think I did the .INI version of what you suggest, I basically added the following to the .ini (key 27 I think corresponds to ESC):

search_edit_clear_keys=27
void
Developer
Posts: 15098
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to return focus to Search Edit box and clear it

Post by void »

Everything 1.5.0.1327a fixes an issue with the home command not giving focus to the search box.
Post Reply