GWEN improvement: allow to navigate TreeControl and ComboBox using the cursor keys

This commit is contained in:
erwin coumans
2013-07-01 23:43:49 -07:00
parent 898f423f95
commit 0f78c696b5
14 changed files with 458 additions and 17 deletions

View File

@@ -36,6 +36,15 @@ namespace Gwen
virtual void OnNodeAdded( TreeNode* pNode );
virtual bool OnKeyUp( bool bDown );
virtual bool OnKeyDown( bool bDown );
virtual bool OnKeyRight( bool bDown );
virtual bool OnKeyLeft( bool bDown );
virtual void iterate(int action,int* curIndex, int* resultIndex);
private:
void OnNodeSelection( Controls::Base* control );