add shortcut Escape button for closing images issues 672

This commit is contained in:
kirp 2021-08-11 01:39:27 +03:00
parent 6e8adc7320
commit a88c68c0a8
No known key found for this signature in database
GPG key ID: E0277EFCA43284BE
2 changed files with 4 additions and 0 deletions

View file

@ -31,6 +31,8 @@ ImageOverlay::ImageOverlay(QPixmap image, QWidget *parent)
connect(this, SIGNAL(closing()), this, SLOT(close()));
close_shortcut_ = new QShortcut(QKeySequence(Qt::Key_Escape), this, SLOT(close()));
raise();
}