mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +09:00
Don't allow Key.Escape
This commit is contained in:
parent
b1403d837e
commit
6a459efd8f
@ -5,6 +5,7 @@ using OpenTK.Graphics;
|
|||||||
using osu.Framework.Input;
|
using osu.Framework.Input;
|
||||||
using System;
|
using System;
|
||||||
using osu.Game.Input.Bindings;
|
using osu.Game.Input.Bindings;
|
||||||
|
using OpenTK.Input;
|
||||||
|
|
||||||
namespace osu.Game.Graphics.UserInterface
|
namespace osu.Game.Graphics.UserInterface
|
||||||
{
|
{
|
||||||
@ -44,6 +45,9 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
{
|
{
|
||||||
if (!HasFocus) return false;
|
if (!HasFocus) return false;
|
||||||
|
|
||||||
|
if (args.Key == Key.Escape)
|
||||||
|
return false; // disable the framework-level handling of escape key for confority (we use GlobalAction.Back).
|
||||||
|
|
||||||
return base.OnKeyDown(state, args);
|
return base.OnKeyDown(state, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user