# HG changeset patch # User Rafael Monteiro # Date 1434374144 14400 # Node ID d3f39abe119bc2b052eaab05f6e316196a17f832 # Parent 4c4d8fe5583a008d4436afd8666eb8e2816c469a GUI-Find: keep focus on Find What and select all text when dialog opens * find-dialog.cc (init_search_text): set focus and select all text in line edit diff -r 4c4d8fe5583a -r d3f39abe119b libgui/src/m-editor/find-dialog.cc --- a/libgui/src/m-editor/find-dialog.cc Sun Aug 09 23:23:15 2015 +0200 +++ b/libgui/src/m-editor/find-dialog.cc Mon Jun 15 09:15:44 2015 -0400 @@ -235,6 +235,10 @@ if (lbeg == lend) _search_line_edit->setText (_edit_area->selectedText ()); } + + // set focus to "Find what" and select all text + _search_line_edit->setFocus(); + _search_line_edit->selectAll(); } void