color theme related improvements
This commit is contained in:
@@ -187,7 +187,9 @@ namespace mpvnet
|
||||
OnKeyUp(new WF.KeyEventArgs((WF.Keys)(unchecked((int)(long)m.WParam)) | ModifierKeys));
|
||||
else if (m.Msg == WM_APPCOMMAND)
|
||||
{
|
||||
switch ((AppCommand)(m.LParam.ToInt32() >> 16))
|
||||
var value = (AppCommand)(m.LParam.ToInt64() >> 16 & ~0xf000);
|
||||
|
||||
switch (value)
|
||||
{
|
||||
case AppCommand.MEDIA_CHANNEL_DOWN:
|
||||
SetKey("Channel_Down");
|
||||
@@ -231,6 +233,9 @@ namespace mpvnet
|
||||
case AppCommand.VolumeMute:
|
||||
SetKey("Mute");
|
||||
break;
|
||||
default:
|
||||
Msg.ShowError($"AppCommand {value} not supported,\nplease contact support.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user