summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 5958e4be..d86729ad 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -855,6 +855,18 @@ bool MainWindow::queryClose()
}
+void MainWindow::keyPressEvent(QKeyEvent *event)
+{
+ if (event->key() == Qt::Key_Escape)
+ {
+ m_findBar->hide();
+ return;
+ }
+
+ KXmlGuiWindow::keyPressEvent(event);
+}
+
+
QAction *MainWindow::actionByName(const QString name)
{
QAction *ret = actionCollection()->action(name);