1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-18 06:22:56 +08:00

Improve keybindings handling in multiplayer room

This commit is contained in:
orwenn22 2024-12-16 10:11:17 +01:00
parent 4a8295c49d
commit e56aac170d
2 changed files with 4 additions and 4 deletions

View File

@ -256,7 +256,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
public bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
{
if (!readyButton.Enabled.Value)
if (e.Repeat)
{
return false;
}
@ -264,7 +264,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
switch (e.Action)
{
case GlobalAction.MultiplayerReady:
onReadyButtonClick();
readyButton.TriggerClick();
return true;
default:

View File

@ -109,7 +109,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
public bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
{
if (operationInProgress.Value)
if (e.Repeat)
{
return false;
}
@ -117,7 +117,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
switch (e.Action)
{
case GlobalAction.MultiplayerSpectate:
onClick();
button.TriggerClick();
return true;
default: