aboutsummaryrefslogtreecommitdiff
path: root/src/about.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/about.cpp')
-rw-r--r--src/about.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/about.cpp b/src/about.cpp
index ba54a7e..81657e8 100644
--- a/src/about.cpp
+++ b/src/about.cpp
@@ -92,6 +92,14 @@ void About::on_debugInfoButton_clicked() {
}
}
+void About::keyPressEvent(QKeyEvent *e)
+{
+ if (e->key() == Qt::Key_Escape)
+ this->close();
+
+ QWidget::keyPressEvent(e);
+}
+
void About::on_donate_2_clicked() {
QDesktopServices::openUrl(QUrl("https://opencollective.com/whatsie"));
}