From f16e29b8be09c08a074164cfe5830d3d6c480903 Mon Sep 17 00:00:00 2001 From: Daniele Cocca Date: Sat, 15 Oct 2011 00:15:29 +0200 Subject: [PATCH] Selecting all the contents of the WebSearchBar when receiving focus from keyboard (i.e., Ctrl+K). --- src/navigation/websearchbar.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/navigation/websearchbar.cpp b/src/navigation/websearchbar.cpp index e87e674a5..74789e4d2 100644 --- a/src/navigation/websearchbar.cpp +++ b/src/navigation/websearchbar.cpp @@ -104,6 +104,8 @@ void WebSearchBar::focusInEvent(QFocusEvent* e) if (text() == search) { clear(); + } else { + selectAll(); } QLineEdit::focusInEvent(e); }