Change modifier to avoid conflict on mac os.
This commit is contained in:
parent
78a123b266
commit
d353e6616f
|
@ -518,11 +518,11 @@ void VBackgroundImageItem::keyPressEvent(QKeyEvent *event)
|
||||||
return;
|
return;
|
||||||
case Qt::Key_Period:
|
case Qt::Key_Period:
|
||||||
case Qt::Key_Greater:
|
case Qt::Key_Greater:
|
||||||
(event->modifiers() & Qt::ControlModifier) ? ScaleImageByFactor(2) : ScaleImageByAdjustSize(2);
|
(event->modifiers() & Qt::AltModifier) ? ScaleImageByFactor(2) : ScaleImageByAdjustSize(2);
|
||||||
return;
|
return;
|
||||||
case Qt::Key_Comma:
|
case Qt::Key_Comma:
|
||||||
case Qt::Key_Less:
|
case Qt::Key_Less:
|
||||||
(event->modifiers() & Qt::ControlModifier) ? ScaleImageByFactor(0.5) : ScaleImageByAdjustSize(-2);
|
(event->modifiers() & Qt::AltModifier) ? ScaleImageByFactor(0.5) : ScaleImageByAdjustSize(-2);
|
||||||
return;
|
return;
|
||||||
case Qt::Key_Home:
|
case Qt::Key_Home:
|
||||||
MoveImageZValue(static_cast<int>(ZValueMoveType::Top));
|
MoveImageZValue(static_cast<int>(ZValueMoveType::Top));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user