Avoid consuming keystrokes in editor when a modifier key is held down

This commit is contained in:
Dean Herbert 2020-09-25 16:56:39 +09:00
parent c273b9dcb3
commit b70a20e7f1

View File

@ -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);