mirror of
https://github.com/ppy/osu.git
synced 2026-05-24 22:40:42 +08:00
Use UIEvent level getters for modifier keys.
This commit is contained in:
@@ -34,8 +34,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
protected override bool OnKeyDown(KeyDownEvent e)
|
||||
{
|
||||
var keyboard = e.CurrentState.Keyboard;
|
||||
if (!keyboard.ControlPressed && !keyboard.ShiftPressed)
|
||||
if (!e.ControlPressed && !e.ShiftPressed)
|
||||
{
|
||||
switch (e.Key)
|
||||
{
|
||||
@@ -57,7 +56,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
}
|
||||
}
|
||||
|
||||
if (keyboard.ShiftPressed)
|
||||
if (e.ShiftPressed)
|
||||
{
|
||||
switch (e.Key)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user