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

Only allow seek to next/previous object via keybinding if there is no selection

This commit is contained in:
Bartłomiej Dach 2024-09-13 15:14:09 +02:00
parent 2ccb4a48eb
commit 7f71ef4547
No known key found for this signature in database

View File

@ -721,10 +721,16 @@ namespace osu.Game.Screens.Edit
switch (e.Action) switch (e.Action)
{ {
case GlobalAction.EditorSeekToPreviousHitObject: case GlobalAction.EditorSeekToPreviousHitObject:
if (editorBeatmap.SelectedHitObjects.Any())
return false;
seekHitObject(-1); seekHitObject(-1);
return true; return true;
case GlobalAction.EditorSeekToNextHitObject: case GlobalAction.EditorSeekToNextHitObject:
if (editorBeatmap.SelectedHitObjects.Any())
return false;
seekHitObject(1); seekHitObject(1);
return true; return true;