mirror of https://github.com/ppy/osu
Merge pull request #10238 from peppy/fix-hoc-keyboard-shortcut-hard-crash
Fix hard crash on hitting an out of range key (Q~P)
This commit is contained in:
commit
d9fee594ea
|
@ -205,7 +205,7 @@ protected override bool OnKeyDown(KeyDownEvent e)
|
|||
|
||||
if (checkRightToggleFromKey(e.Key, out var rightIndex))
|
||||
{
|
||||
var item = togglesCollection.Children[rightIndex];
|
||||
var item = togglesCollection.ElementAtOrDefault(rightIndex);
|
||||
|
||||
if (item is SettingsCheckbox checkbox)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue