Added focus classifiction of handling of keyboard events
This commit is contained in:
parent
38534c453a
commit
1f56d4905f
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user