aboutsummaryrefslogtreecommitdiff
path: root/src/about.cpp
diff options
context:
space:
mode:
authorLibravatar Keshav Bhatt <keshavnrj@gmail.com>2023-01-27 02:13:28 +0530
committerLibravatar Keshav Bhatt <keshavnrj@gmail.com>2023-01-27 10:10:17 +0530
commit56c55a949854f9dd73b60e353be35bd31407cee0 (patch)
tree130a8f826e46c4969828a73d62060f716f0a9c37 /src/about.cpp
parent7fc4ce386626cd5d2c1e68258b16263732ca318d (diff)
downloadwhatsie-56c55a949854f9dd73b60e353be35bd31407cee0.tar.gz
whatsie-56c55a949854f9dd73b60e353be35bd31407cee0.zip
chore: escape key to close child windows
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"));
}