diff --git a/src/Gui/Application.cpp b/src/Gui/Application.cpp index c8025328bf..f4e108c6c9 100644 --- a/src/Gui/Application.cpp +++ b/src/Gui/Application.cpp @@ -1437,7 +1437,8 @@ public: (int)event->type()); } try { - if (event->type() == Spaceball::ButtonEvent::ButtonEventType || Spaceball::MotionEvent::MotionEventType) + if (event->type() == Spaceball::ButtonEvent::ButtonEventType || + event->type() == Spaceball::MotionEvent::MotionEventType) return processSpaceballEvent(receiver, event); else return QApplication::notify(receiver, event); diff --git a/src/Gui/DlgKeyboardImp.cpp b/src/Gui/DlgKeyboardImp.cpp index fe947dbc19..0e0b3af4bb 100644 --- a/src/Gui/DlgKeyboardImp.cpp +++ b/src/Gui/DlgKeyboardImp.cpp @@ -204,7 +204,7 @@ void DlgCustomKeyboardImp::on_buttonAssign_clicked() editShortcut->clear(); ParameterGrp::handle hGrp = WindowParameter::getDefaultParameter()->GetGroup("Shortcut"); - hGrp->SetASCII(name.constData(), accelLineEditShortcut->text().toAscii()); + hGrp->SetASCII(name.constData(), accelLineEditShortcut->text().toUtf8()); buttonAssign->setEnabled(false); buttonReset->setEnabled(true); } diff --git a/src/Gui/InventorNavigationStyle.cpp b/src/Gui/InventorNavigationStyle.cpp index 65db39aff4..5c9afd6fcc 100644 --- a/src/Gui/InventorNavigationStyle.cpp +++ b/src/Gui/InventorNavigationStyle.cpp @@ -226,6 +226,7 @@ SbBool InventorNavigationStyle::processSoEvent(const SoEvent * const ev) } } } + this->button2down = press; break; case SoMouseButtonEvent::BUTTON3: if (press) { @@ -306,10 +307,12 @@ SbBool InventorNavigationStyle::processSoEvent(const SoEvent * const ev) BUTTON1DOWN = 1 << 0, BUTTON3DOWN = 1 << 1, CTRLDOWN = 1 << 2, - SHIFTDOWN = 1 << 3 + SHIFTDOWN = 1 << 3, + BUTTON2DOWN = 1 << 4 }; unsigned int combo = (this->button1down ? BUTTON1DOWN : 0) | + (this->button2down ? BUTTON2DOWN : 0) | (this->button3down ? BUTTON3DOWN : 0) | (this->ctrldown ? CTRLDOWN : 0) | (this->shiftdown ? SHIFTDOWN : 0); @@ -339,6 +342,7 @@ SbBool InventorNavigationStyle::processSoEvent(const SoEvent * const ev) break; case BUTTON1DOWN|BUTTON3DOWN: case CTRLDOWN|BUTTON3DOWN: + case CTRLDOWN|SHIFTDOWN|BUTTON2DOWN: newmode = NavigationStyle::ZOOMING; break;