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