Gui: MayaGesture navigation fixes (#20948)

* Gui: Gesture and MayaGesture style disable H key in editing mode

* Gui: MayaGesture style go back to IDLE after dragging/panning/zooming

* Gui: MayaGesture more Maya like zoom behavior
This commit is contained in:
Bas Ruigrok
2025-04-28 17:45:21 +02:00
committed by GitHub
parent 5b70817944
commit 3ae1d46249
3 changed files with 27 additions and 8 deletions

View File

@@ -315,7 +315,8 @@ public:
bool press = (kbev->getState() == SoKeyboardEvent::DOWN);
switch (kbev->getKey()) {
case SoKeyboardEvent::H:
if (!press) {
// Disable H key in editing mode because of conflict with sketcher
if (!ns.viewer->isEditing() && !press) {
ns.setupPanningPlane(ns.viewer->getCamera());
ns.lookAtPoint(kbev->getPosition());
}