mirror of
https://github.com/aaru-dps/RedBookPlayer.git
synced 2025-12-16 19:24:41 +00:00
Remove override media volume keys
This commit is contained in:
@@ -131,7 +131,7 @@ namespace RedBookPlayer.GUI.ViewModels
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Volume Up
|
// Volume Up
|
||||||
else if(e.Key == App.Settings.VolumeUpKey || e.Key == Key.VolumeUp)
|
else if(e.Key == App.Settings.VolumeUpKey)
|
||||||
{
|
{
|
||||||
int increment = 1;
|
int increment = 1;
|
||||||
if(e.KeyModifiers.HasFlag(KeyModifiers.Control))
|
if(e.KeyModifiers.HasFlag(KeyModifiers.Control))
|
||||||
@@ -144,7 +144,7 @@ namespace RedBookPlayer.GUI.ViewModels
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Volume Down
|
// Volume Down
|
||||||
else if(e.Key == App.Settings.VolumeDownKey || e.Key == Key.VolumeDown)
|
else if(e.Key == App.Settings.VolumeDownKey)
|
||||||
{
|
{
|
||||||
int decrement = 1;
|
int decrement = 1;
|
||||||
if(e.KeyModifiers.HasFlag(KeyModifiers.Control))
|
if(e.KeyModifiers.HasFlag(KeyModifiers.Control))
|
||||||
@@ -157,7 +157,7 @@ namespace RedBookPlayer.GUI.ViewModels
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mute Toggle
|
// Mute Toggle
|
||||||
else if(e.Key == App.Settings.ToggleMuteKey || e.Key == Key.VolumeMute)
|
else if(e.Key == App.Settings.ToggleMuteKey)
|
||||||
{
|
{
|
||||||
PlayerView?.ViewModel?.ExecuteToggleMute();
|
PlayerView?.ViewModel?.ExecuteToggleMute();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user