mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10: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:
parent
73d11206ae
commit
f16e29b8be
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user