changeset 20480:d3f39abe119b stable

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
author Rafael Monteiro <rafaelgomesmonteiro@gmail.com>
date Mon, 15 Jun 2015 09:15:44 -0400
parents 4c4d8fe5583a
children d43675752d04
files libgui/src/m-editor/find-dialog.cc
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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