mirror of https://github.com/ppy/osu
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 @@ protected virtual DrawableRuleset<TObject> CreateDrawableRuleset(Ruleset ruleset
|
|||
|
||||
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