Gui: [skip ci] add method NavigationStyle::syncModifierKeys() to reduce code duplication

This commit is contained in:
wmayer
2021-11-02 14:52:22 +01:00
parent 9def811a3a
commit 1c93d3ee15
11 changed files with 26 additions and 69 deletions

View File

@@ -918,9 +918,8 @@ SbBool GestureNavigationStyle::processSoEvent(const SoEvent* const ev)
//whatever else, we don't track
}
}
this->ctrldown = ev->wasCtrlDown();
this->shiftdown = ev->wasShiftDown();
this->altdown = ev->wasAltDown();
syncModifierKeys(ev);
smev.modifiers =
(this->button1down ? NS::Event::BUTTON1DOWN : 0) |