1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Fix default volume control keys not working when chat textbox is focused

Closes #22004.
This commit is contained in:
Dean Herbert 2023-01-03 09:44:34 +08:00
parent 53cc71c2fe
commit ac85433178

View File

@ -45,6 +45,9 @@ namespace osu.Game.Graphics.UserInterface
protected override bool OnKeyDown(KeyDownEvent e) protected override bool OnKeyDown(KeyDownEvent e)
{ {
if (e.ControlPressed || e.AltPressed || e.SuperPressed || e.ShiftPressed)
return false;
switch (e.Key) switch (e.Key)
{ {
case Key.Up: case Key.Up: