[lkml]   [2019]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH 25/85] perf scripts python: Select find text when find bar is activated
From: Adrian Hunter <>

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 <>
Tested-by: Arnaldo Carvalho de Melo <>
Cc: Jiri Olsa <>
Signed-off-by: Arnaldo Carvalho de Melo <>
tools/perf/scripts/python/ | 1 +
1 file changed, 1 insertion(+)

diff --git a/tools/perf/scripts/python/ b/tools/perf/scripts/python/
index 94489cf2ce0e..6e7934f2ac9a 100755
--- a/tools/perf/scripts/python/
+++ b/tools/perf/scripts/python/
@@ -400,6 +400,7 @@ class FindBar():

def Activate(self):
+ self.textbox.lineEdit().selectAll()

def Deactivate(self):
 \ /
  Last update: 2019-06-11 21:15    [W:0.205 / U:2.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site