mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 21:07:33 +08:00
Merge pull request #19507 from naipofo/playlist-capture-fix
Prevent capturing arrow keys on playlist creation.
This commit is contained in:
commit
195396309a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user