1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 23:12:56 +08:00

revert globalaction changes

This commit is contained in:
David Zhao 2019-07-24 12:52:18 +09:00
parent 263ccfcbcb
commit da3dc610ba

View File

@ -7,7 +7,6 @@ using System.Linq;
using osu.Framework.Graphics;
using osu.Framework.Input;
using osu.Framework.Input.Bindings;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.Input.Bindings
{
@ -56,11 +55,8 @@ namespace osu.Game.Input.Bindings
new KeyBinding(new[] { InputKey.Control, InputKey.Minus }, GlobalAction.DecreaseScrollSpeed),
};
/// <summary>
/// Make sure that the <see cref="OsuGame"/> handles global input first, and that <see cref="BackButton"/> handles global input last.
/// </summary>
protected override IEnumerable<Drawable> KeyBindingInputQueue =>
(handler == null ? base.KeyBindingInputQueue : base.KeyBindingInputQueue.Prepend(handler)).OrderBy(d => d is BackButton);
handler == null ? base.KeyBindingInputQueue : base.KeyBindingInputQueue.Prepend(handler);
}
public enum GlobalAction