History

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.

Adrian Hunter committed 7 years ago

Commit 80b3fb61 parent b3b66071 file · +1 −0Browse files

Showing the changes to tools/perf/scripts/python (1 of 1 file). Show all

Unified · Split

tools/perf/scripts/python/exported-sql-viewer.py+1−0
@@ -400,6 +400,7 @@ class FindBar(): · 399 unmodified lines
400400
401401 def Activate(self):
402402 self.bar.show()
403+ self.textbox.lineEdit().selectAll()
403404 self.textbox.setFocus()
404405
405406 def Deactivate(self):