mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 00:09:55 +09: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