Commit 636b4a6b authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

Qt: tell that vlc processed the media keys

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 260cae1d
...@@ -182,6 +182,7 @@ bool MainInterface::winEvent ( MSG * msg, long * result ) ...@@ -182,6 +182,7 @@ bool MainInterface::winEvent ( MSG * msg, long * result )
break; break;
case WM_APPCOMMAND: case WM_APPCOMMAND:
cmd = GET_APPCOMMAND_LPARAM(msg->lParam); cmd = GET_APPCOMMAND_LPARAM(msg->lParam);
*result = TRUE;
switch(cmd) switch(cmd)
{ {
case APPCOMMAND_MEDIA_PLAY_PAUSE: case APPCOMMAND_MEDIA_PLAY_PAUSE:
...@@ -213,8 +214,10 @@ bool MainInterface::winEvent ( MSG * msg, long * result ) ...@@ -213,8 +214,10 @@ bool MainInterface::winEvent ( MSG * msg, long * result )
break; break;
default: default:
msg_Dbg( p_intf, "unknown APPCOMMAND = %d", cmd); msg_Dbg( p_intf, "unknown APPCOMMAND = %d", cmd);
*result = FALSE;
break; break;
} }
if (*result) return true;
break; break;
} }
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment