From 7599efac3044cc813abe6ceed8c39f59841e4a76 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 18 Nov 2021 12:36:15 +0900 Subject: [PATCH] Update editor cases where repeat should not be handled --- .../Screens/Edit/Compose/Components/BlueprintContainer.cs | 3 +++ osu.Game/Screens/Edit/Editor.cs | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/osu.Game/Screens/Edit/Compose/Components/BlueprintContainer.cs b/osu.Game/Screens/Edit/Compose/Components/BlueprintContainer.cs index 29e3f12d03..130d7a015f 100644 --- a/osu.Game/Screens/Edit/Compose/Components/BlueprintContainer.cs +++ b/osu.Game/Screens/Edit/Compose/Components/BlueprintContainer.cs @@ -239,6 +239,9 @@ namespace osu.Game.Screens.Edit.Compose.Components public bool OnPressed(KeyBindingPressEvent e) { + if (e.Repeat) + return false; + switch (e.Action) { case PlatformAction.SelectAll: diff --git a/osu.Game/Screens/Edit/Editor.cs b/osu.Game/Screens/Edit/Editor.cs index 2a7e2c9cef..94b6e58b67 100644 --- a/osu.Game/Screens/Edit/Editor.cs +++ b/osu.Game/Screens/Edit/Editor.cs @@ -393,6 +393,9 @@ namespace osu.Game.Screens.Edit return true; case PlatformAction.Save: + if (e.Repeat) + return false; + Save(); return true; } @@ -457,6 +460,9 @@ namespace osu.Game.Screens.Edit public bool OnPressed(KeyBindingPressEvent e) { + if (e.Repeat) + return false; + switch (e.Action) { case GlobalAction.Back: