Menu key triggers the popup menu
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 4 Feb 2009 20:56:19 +0000 (22:56 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Thu, 5 Feb 2009 15:27:14 +0000 (17:27 +0200)
That particular key is supposed to work that way.

modules/control/hotkeys.c

index bdb4ce1..aeba7fd 100644 (file)
@@ -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;
     }