macOS fix: add Move diagram item with the keyboard arrow

This commit is contained in:
Laurent
2023-03-29 13:10:50 +02:00
parent 6919369a92
commit 5cbb444c0a

View File

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