Use UIEvent level getters for modifier keys.

This commit is contained in:
ekrctb
2018-10-02 12:44:14 +09:00
parent 50091252e2
commit b7a2ad1aa5
17 changed files with 18 additions and 22 deletions

View File

@ -183,7 +183,7 @@ namespace osu.Game.Overlays
protected override void OnFocusLost(FocusLostEvent e)
{
if (e.CurrentState.Keyboard.IsPressed(Key.Escape)) dismiss();
if (e.CurrentState.Keyboard.Keys.IsPressed(Key.Escape)) dismiss();
}
private const double initial_duration = 400;