Commit 280f16e5 authored by Antoine Cellerier's avatar Antoine Cellerier

add KEY_ENTER and KEY_SPACE to launch action()

parent 7770c2f2
...@@ -322,6 +322,14 @@ void CtrlTree::handleEvent( EvtGeneric &rEvent ) ...@@ -322,6 +322,14 @@ void CtrlTree::handleEvent( EvtGeneric &rEvent )
} }
} }
} }
else if( key == KEY_ENTER || key == KEY_SPACE )
{
// Go up one level (and close node)
if( &*it == m_pLastSelected )
{
m_rTree.action( &*it );
}
}
it = next; it = next;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment