diff options
author | 2023-01-27 02:13:28 +0530 | |
---|---|---|
committer | 2023-01-27 10:10:17 +0530 | |
commit | 56c55a949854f9dd73b60e353be35bd31407cee0 (patch) | |
tree | 130a8f826e46c4969828a73d62060f716f0a9c37 /src/about.cpp | |
parent | 7fc4ce386626cd5d2c1e68258b16263732ca318d (diff) | |
download | whatsie-56c55a949854f9dd73b60e353be35bd31407cee0.tar.gz whatsie-56c55a949854f9dd73b60e353be35bd31407cee0.zip |
chore: escape key to close child windows
Diffstat (limited to 'src/about.cpp')
-rw-r--r-- | src/about.cpp | 8 |
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")); } |