From 8cf6289d9cf527f5d964d65f5e4696d95f7e0b47 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Thu, 19 Jul 2012 19:31:15 +0200 Subject: [PATCH] Close search when the escape button is pressed. --- src/gui/DatabaseWidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp index 04095f78b..def7e843f 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -87,6 +87,7 @@ DatabaseWidget::DatabaseWidget(Database* db, QWidget* parent) QIcon closeIcon = filePath()->icon("actions", "dialog-close"); closeAction->setIcon(closeIcon); m_searchUi->closeSearchButton->setDefaultAction(closeAction); + m_searchUi->closeSearchButton->setShortcut(Qt::Key_Escape); m_searchWidget->hide(); m_searchUi->caseSensitiveCheckBox->setVisible(false);