macOS fix: add Move diagram item with the keyboard arrow

This commit is contained in:
Laurent
2023-03-29 13:10:50 +02:00
committed by Laurent Trinques
parent 6dec80cfa3
commit ad85d9b6bf

View File

@@ -358,7 +358,11 @@ void Diagram::keyPressEvent(QKeyEvent *event)
#pragma message("@TODO move code to new function") #pragma message("@TODO move code to new function")
#endif #endif
//Move item with the keyboard arrow //Move item with the keyboard arrow
#ifdef Q_OS_MACOS
if(event->modifiers() == Qt::KeypadModifier)
#else
if(event->modifiers() == Qt::NoModifier) if(event->modifiers() == Qt::NoModifier)
#endif
{ {
QSettings settings; QSettings settings;
int xKeyGrid = settings.value(QStringLiteral("diagrameditor/key_Xgrid"), int xKeyGrid = settings.value(QStringLiteral("diagrameditor/key_Xgrid"),