mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 02:32:59 +08:00
Merge pull request #10244 from peppy/editor-dont-block-keys-unnecessarily
Avoid consuming keystrokes in editor when a modifier key is held down
This commit is contained in:
commit
ab03be5336
@ -192,6 +192,9 @@ namespace osu.Game.Rulesets.Edit
|
|||||||
|
|
||||||
protected override bool OnKeyDown(KeyDownEvent e)
|
protected override bool OnKeyDown(KeyDownEvent e)
|
||||||
{
|
{
|
||||||
|
if (e.ControlPressed || e.AltPressed || e.SuperPressed)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (checkLeftToggleFromKey(e.Key, out var leftIndex))
|
if (checkLeftToggleFromKey(e.Key, out var leftIndex))
|
||||||
{
|
{
|
||||||
var item = toolboxCollection.Items.ElementAtOrDefault(leftIndex);
|
var item = toolboxCollection.Items.ElementAtOrDefault(leftIndex);
|
||||||
|
Loading…
Reference in New Issue
Block a user