mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-04-20 08:22:52 +00:00
UI: Added the ability to unbind hotkeys via pressing backspace.
This commit is contained in:
@@ -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));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user