mirror of
https://github.com/ppy/osu
synced 2024-12-27 17:32:56 +00:00
Avoid consuming keystrokes in editor when a modifier key is held down
This commit is contained in:
parent
c273b9dcb3
commit
b70a20e7f1
@ -192,6 +192,9 @@ namespace osu.Game.Rulesets.Edit
|
||||
|
||||
protected override bool OnKeyDown(KeyDownEvent e)
|
||||
{
|
||||
if (e.ControlPressed || e.AltPressed || e.SuperPressed)
|
||||
return false;
|
||||
|
||||
if (checkLeftToggleFromKey(e.Key, out var leftIndex))
|
||||
{
|
||||
var item = toolboxCollection.Items.ElementAtOrDefault(leftIndex);
|
||||
|
Loading…
Reference in New Issue
Block a user