summaryrefslogtreecommitdiffstats
path: root/kicker
diff options
context:
space:
mode:
Diffstat (limited to 'kicker')
-rw-r--r--kicker/kicker/ui/k_mnu.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/kicker/kicker/ui/k_mnu.cpp b/kicker/kicker/ui/k_mnu.cpp
index 5be0f2c8a..e2eb6f3bd 100644
--- a/kicker/kicker/ui/k_mnu.cpp
+++ b/kicker/kicker/ui/k_mnu.cpp
@@ -737,9 +737,14 @@ void PanelKMenu::keyPressEvent(TQKeyEvent* e)
if (!searchEdit) return KPanelMenu::keyPressEvent(e);
- if (e->key() == TQt::Key_Escape && searchEdit->text().isEmpty() == false) {
+ if (e->key() == TQt::Key_Escape && searchEdit->text().isEmpty() == false)
+ {
searchEdit->clear();
}
+ else if (e->key() == TQt::Key_Escape && searchEdit->hasFocus())
+ {
+ searchEdit->clearFocus();
+ }
else if (e->key() == TQt::Key_Delete && !searchEdit->hasFocus() &&
searchEdit->text().isEmpty() == false)
{