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:
parent
2ccb4a48eb
commit
7f71ef4547
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user