Fixed redo binding to Ctrl+Y
This commit is contained in:
parent
84ecb99b12
commit
eda562f92e
1 changed files with 3 additions and 4 deletions
|
@ -10,7 +10,6 @@
|
|||
#include "RenderPreviewProvider.h"
|
||||
#include "RenderProcess.h"
|
||||
#include "RenderConfig.h"
|
||||
#include "DiffManager.h"
|
||||
|
||||
#include <QQmlEngine>
|
||||
#include <QGuiApplication>
|
||||
|
@ -154,14 +153,14 @@ void MainModelerWindow::keyReleaseEvent(QKeyEvent *event) {
|
|||
} else if (event->key() == Qt::Key_Z) {
|
||||
if (event->modifiers() & Qt::ControlModifier) {
|
||||
if (event->modifiers() & Qt::ShiftModifier) {
|
||||
getScenery()->getDiffManager()->redo();
|
||||
getScenery()->redo();
|
||||
} else {
|
||||
getScenery()->getDiffManager()->undo();
|
||||
getScenery()->undo();
|
||||
}
|
||||
}
|
||||
} else if (event->key() == Qt::Key_Y) {
|
||||
if (event->modifiers() & Qt::ControlModifier) {
|
||||
getScenery()->getDiffManager()->undo();
|
||||
getScenery()->redo();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue