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
1 changed files with 3 additions and 0 deletions

View File

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