[AudioSystem] ACE bug fix: Ctrl-S doesn't work correctly when a level is loaded. (#6411)

Signed-off-by: Maxim Ivanov <imginimg@gmail.com>
This commit is contained in:
Maxim Ivanov
2021-12-16 23:53:22 +03:00
committed by GitHub
parent ad5f3f0e53
commit 285d92ff0d
3 changed files with 3 additions and 22 deletions
@@ -121,27 +121,6 @@ namespace AudioControls
}
}
//-------------------------------------------------------------------------------------------//
void CAudioControlsEditorWindow::keyPressEvent(QKeyEvent* pEvent)
{
if (pEvent->key() == Qt::Key_S && pEvent->modifiers() == Qt::ControlModifier)
{
Save();
}
else if (pEvent->key() == Qt::Key_Z && (pEvent->modifiers() & Qt::ControlModifier))
{
if (pEvent->modifiers() & Qt::ShiftModifier)
{
GetIEditor()->Redo();
}
else
{
GetIEditor()->Undo();
}
}
QMainWindow::keyPressEvent(pEvent);
}
//-------------------------------------------------------------------------------------------//
void CAudioControlsEditorWindow::closeEvent(QCloseEvent* pEvent)
{