mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-27 16:29:44 -05:00
Look for a close button when pressing the escape key.
This commit is contained in:
parent
f3d956ceed
commit
6c9c0fd5c5
@ -46,7 +46,9 @@ void DialogyWidget::keyPressEvent(QKeyEvent* e)
|
||||
break;
|
||||
case Qt::Key_Escape:
|
||||
if (!clickButton(QDialogButtonBox::Cancel)) {
|
||||
e->ignore();
|
||||
if (!clickButton(QDialogButtonBox::Close)) {
|
||||
e->ignore();
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user