1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-18 11:52:54 +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) public bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
{ {
if (!readyButton.Enabled.Value) if (e.Repeat)
{ {
return false; return false;
} }
@ -264,7 +264,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
switch (e.Action) switch (e.Action)
{ {
case GlobalAction.MultiplayerReady: case GlobalAction.MultiplayerReady:
onReadyButtonClick(); readyButton.TriggerClick();
return true; return true;
default: default:

View File

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