[Discussion] How the escape key should behave in the search entry?
Submitted by akr..@..il.com
Link to original bug (#779625)
Description
Hello.
I've been playing around some things of the UI and I don't find very consistent the behaviour of the ESC key in the search entry.
Currently, if you press Esc key in the search entry it clears it. In the code (SearchFilter.vala:702) it says that this is a behaviour asked in ticket #3124 (closed). I haven't been able to find that ticket (is it in bugzilla or..?), but I'd like to re-discuss that.
In any web browser, I'm used to open the Search bar with Ctrl^F, I write something and when I'm done with the search, I close the search bar with Esc. If I make any mistake typing, I can clear the search box very quickly by using Ctrl^A + Backspace or Ctrl + Backspace. If I open again the search bar through Ctrl^F I see the last search already written.
To be consistent with web browsers and for better user experience:
- Do the behaviour I explained above. It'd just imply change the current behaviour of Escape key to hide the search bar and save the content of the search entry for next time it shows.
- Hide the Search Bar if search entry is empty. It'd allow to close the search bar in two hits of ESC.
PS: Currently Shotwell doesn't open Search bar by hitting Ctrl + F, but I've already written a patch to do it. I hope it's in soon.
Version: 0.25.x