1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 13:27:23 +08:00

Merge pull request #19507 from naipofo/playlist-capture-fix

Prevent capturing arrow keys on playlist creation.
This commit is contained in:
Dan Balasescu 2022-08-01 11:46:00 +09:00 committed by GitHub
commit 195396309a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,6 +204,9 @@ namespace osu.Game.Screens.OnlinePlay
public bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
{
if (!AllowSelection)
return false;
switch (e.Action)
{
case GlobalAction.SelectNext:
@ -224,9 +227,6 @@ namespace osu.Game.Screens.OnlinePlay
private void selectNext(int direction)
{
if (!AllowSelection)
return;
var visibleItems = ListContainer.AsEnumerable().Where(r => r.IsPresent);
PlaylistItem item;