1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 12:46:35 +01:00

Selecting all the contents of the WebSearchBar when receiving focus from

keyboard (i.e., Ctrl+K).
This commit is contained in:
Daniele Cocca 2011-10-15 00:15:29 +02:00
parent 73d11206ae
commit f16e29b8be

View File

@ -104,6 +104,8 @@ void WebSearchBar::focusInEvent(QFocusEvent* e)
if (text() == search) { if (text() == search) {
clear(); clear();
} else {
selectAll();
} }
QLineEdit::focusInEvent(e); QLineEdit::focusInEvent(e);
} }