color theme related improvements

This commit is contained in:
Frank Skare
2019-07-17 18:18:33 +02:00
parent a82f558acf
commit 2af84941ca
15 changed files with 121 additions and 99 deletions

View File

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