[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
@@ -154,6 +154,9 @@
<property name="text">
<string>Save All</string>
</property>
<property name="shortcut">
<string>Ctrl+S</string>
</property>
</action>
<action name="actionReload">
<property name="icon">
@@ -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)
{
@@ -63,7 +63,6 @@ namespace AudioControls
void Update();
protected:
void keyPressEvent(QKeyEvent* pEvent) override;
void closeEvent(QCloseEvent* pEvent) override;
private: