Skip to content

Commit 80b3fb6

Browse files
ahunter6acmel
authored andcommitted
perf scripts python: exported-sql-viewer.py: Select find text when find bar is activated
The user probably wants to replace the find text, so select the find text when the find bar is activated. That is fairly standard behaviour for search text entry. Entering text will replace the current text, but using edit keys (arrows, home, end etc) cancels the selection and enables editing. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/r/20190520113728.14389-23-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent b3b6607 commit 80b3fb6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tools/perf/scripts/python/exported-sql-viewer.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ def Widget(self):
400400

401401
def Activate(self):
402402
self.bar.show()
403+
self.textbox.lineEdit().selectAll()
403404
self.textbox.setFocus()
404405

405406
def Deactivate(self):

0 commit comments

Comments
 (0)