Update editor cases where repeat should not be handled

This commit is contained in:
Dean Herbert
2021-11-18 12:36:15 +09:00
parent 3de8125eac
commit 7599efac30
2 changed files with 9 additions and 0 deletions

View File

@ -239,6 +239,9 @@ namespace osu.Game.Screens.Edit.Compose.Components
public bool OnPressed(KeyBindingPressEvent<PlatformAction> e) public bool OnPressed(KeyBindingPressEvent<PlatformAction> e)
{ {
if (e.Repeat)
return false;
switch (e.Action) switch (e.Action)
{ {
case PlatformAction.SelectAll: case PlatformAction.SelectAll:

View File

@ -393,6 +393,9 @@ namespace osu.Game.Screens.Edit
return true; return true;
case PlatformAction.Save: case PlatformAction.Save:
if (e.Repeat)
return false;
Save(); Save();
return true; return true;
} }
@ -457,6 +460,9 @@ namespace osu.Game.Screens.Edit
public bool OnPressed(KeyBindingPressEvent<GlobalAction> e) public bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
{ {
if (e.Repeat)
return false;
switch (e.Action) switch (e.Action)
{ {
case GlobalAction.Back: case GlobalAction.Back: