mirror of
https://github.com/tnodir/fort
synced 2024-11-15 06:35:23 +00:00
UI: Minor fix.
This commit is contained in:
parent
c875359d46
commit
6456742e93
@ -37,8 +37,7 @@ void OptionsWindow::keyPressEvent(QKeyEvent *event)
|
||||
{
|
||||
if (event->key() == Qt::Key_Escape
|
||||
&& event->modifiers() == Qt::NoModifier
|
||||
&& !event->isAutoRepeat()
|
||||
&& this->isActiveWindow()) {
|
||||
&& !event->isAutoRepeat()) {
|
||||
ctrl()->closeWindow();
|
||||
}
|
||||
}
|
||||
|
@ -76,8 +76,7 @@ void ProgramsWindow::keyPressEvent(QKeyEvent *event)
|
||||
{
|
||||
if (event->key() == Qt::Key_Escape
|
||||
&& event->modifiers() == Qt::NoModifier
|
||||
&& !event->isAutoRepeat()
|
||||
&& this->isActiveWindow()) {
|
||||
&& !event->isAutoRepeat()) {
|
||||
ctrl()->closeWindow();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user