[vlc-devel] [PATCH] Menu key triggers the popup menu

Rémi Denis-Courmont rdenis at simphalempin.com
Wed Feb 4 21:57:55 CET 2009


That particular key is supposed to work that way.
---
 modules/control/hotkeys.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
index bdb4ce1..aeba7fd 100644
--- a/modules/control/hotkeys.c
+++ b/modules/control/hotkeys.c
@@ -938,7 +938,6 @@ static int SpecialKeyEvent( vlc_object_t *libvlc, char const *psz_var,
     intf_thread_t *p_intf = (intf_thread_t *)p_data;
     int i_action;
 
-    (void)libvlc;
     (void)psz_var;
     (void)oldval;
 
@@ -960,6 +959,9 @@ static int SpecialKeyEvent( vlc_object_t *libvlc, char const *psz_var,
         case KEY_MOUSEWHEELRIGHT:
             i_action = ACTIONID_JUMP_FORWARD_EXTRASHORT;
             break;
+        case KEY_MENU:
+            var_SetBool( libvlc, "intf-popupmenu", true );
+            break;
         default:
           return VLC_SUCCESS;
     }
-- 
1.5.6.5




More information about the vlc-devel mailing list