UI: Added the ability to unbind hotkeys via pressing backspace.

This commit is contained in:
GreemDev 2025-03-14 23:52:27 -05:00
parent 11ea020092
commit 57118e00fb
2 changed files with 6 additions and 12 deletions

View file

@ -83,8 +83,13 @@ namespace Ryujinx.Ava.UI.Helpers
ToggledButton.IsChecked = false;
ButtonAssigned?.Invoke(this, new ButtonAssignedEventArgs(ToggledButton, pressedButton));
if (pressedButton.HasValue && pressedButton.Value.AsHidType<Key>() == Key.BackSpace)
{
ButtonAssigned?.Invoke(this, new ButtonAssignedEventArgs(ToggledButton, new Button(Key.Unbound)));
return;
}
ButtonAssigned?.Invoke(this, new ButtonAssignedEventArgs(ToggledButton, pressedButton));
});
}