mirror of
https://github.com/ppy/osu.git
synced 2025-01-31 12:13:00 +08:00
Don't block Popover
escape handling (just let it work in addition to GlobalAction.Back
)
This commit is contained in:
parent
0a97fb6359
commit
3a37817ab2
@ -14,7 +14,6 @@ using osu.Framework.Input.Events;
|
||||
using osu.Game.Input.Bindings;
|
||||
using osu.Game.Overlays;
|
||||
using osuTK;
|
||||
using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
@ -75,14 +74,6 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
samplePopOut?.Play();
|
||||
}
|
||||
|
||||
protected override bool OnKeyDown(KeyDownEvent e)
|
||||
{
|
||||
if (e.Key == Key.Escape)
|
||||
return false; // disable the framework-level handling of escape key for conformity (we use GlobalAction.Back).
|
||||
|
||||
return base.OnKeyDown(e);
|
||||
}
|
||||
|
||||
public virtual bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
|
||||
{
|
||||
if (e.Repeat)
|
||||
|
Loading…
Reference in New Issue
Block a user