Mercurial > octave
diff libgui/src/m-editor/find-dialog.cc @ 20445: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 | aa36fb998a4d |
children | 642ce72cf1ab |
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