Added focus classifiction of handling of keyboard events

This commit is contained in:
Robert Osfield 2018-04-04 13:40:51 +01:00
parent 38534c453a
commit 1f56d4905f

View File

@ -1020,6 +1020,12 @@ void CompositeViewer::eventTraversal()
classification = EVENT_FOR_ALL_VIEWS;
break;
case(osgGA::GUIEventAdapter::KEYDOWN):
case(osgGA::GUIEventAdapter::KEYUP):
classification = EVENT_FOR_VIEW_ASSOCIATED_WITH_FOCUS;
if (_previousEvent.valid()) event->copyPointerDataFrom(*_previousEvent);
break;
case(osgGA::GUIEventAdapter::PUSH):
case(osgGA::GUIEventAdapter::RELEASE):
case(osgGA::GUIEventAdapter::DOUBLECLICK):