[vlc-devel] commit: Menu key triggers the popup menu ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Feb 5 16:27:16 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Feb  4 22:56:19 2009 +0200| [069e8d419fb72defaf956f238ae475087ced2087] | committer: Rémi Denis-Courmont 

Menu key triggers the popup menu

That particular key is supposed to work that way.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=069e8d419fb72defaf956f238ae475087ced2087
---

 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;
     }




More information about the vlc-devel mailing list