mirror of
https://github.com/tnodir/fort
synced 2024-11-15 10:25:10 +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
|
if (event->key() == Qt::Key_Escape
|
||||||
&& event->modifiers() == Qt::NoModifier
|
&& event->modifiers() == Qt::NoModifier
|
||||||
&& !event->isAutoRepeat()
|
&& !event->isAutoRepeat()) {
|
||||||
&& this->isActiveWindow()) {
|
|
||||||
ctrl()->closeWindow();
|
ctrl()->closeWindow();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -76,8 +76,7 @@ void ProgramsWindow::keyPressEvent(QKeyEvent *event)
|
|||||||
{
|
{
|
||||||
if (event->key() == Qt::Key_Escape
|
if (event->key() == Qt::Key_Escape
|
||||||
&& event->modifiers() == Qt::NoModifier
|
&& event->modifiers() == Qt::NoModifier
|
||||||
&& !event->isAutoRepeat()
|
&& !event->isAutoRepeat()) {
|
||||||
&& this->isActiveWindow()) {
|
|
||||||
ctrl()->closeWindow();
|
ctrl()->closeWindow();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user