]> git.sesse.net Git - vlc/commitdiff
add KEY_ENTER and KEY_SPACE to launch action()
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 20 Aug 2005 13:22:16 +0000 (13:22 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 20 Aug 2005 13:22:16 +0000 (13:22 +0000)
modules/gui/skins2/controls/ctrl_tree.cpp

index 7404dd6bb649cc63d2a74a73b15596efc0ef7458..288292cdb2a142e0ab13ffc3a3929cce71d3bcc8 100644 (file)
@@ -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;
         }