+//******************************************************
+void XGUI_Viewer::onKeyRelease(XGUI_ViewWindow* theView, QKeyEvent* theKey)
+{
+ Handle(V3d_View) aView = theView->viewPort()->getView();
+ bool noModifiers = (theKey->modifiers() == Qt::NoModifier);
+ if ((theKey->key() == Qt::Key_N) && noModifiers) {
+ myAISContext->HilightNextDetected(aView);
+ } else if ((theKey->key() == Qt::Key_P) && noModifiers) {
+ myAISContext->HilightPreviousDetected(aView);
+ } else {
+ emit keyRelease(theView, theKey);
+ }
+}
+