[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user