Profile configuration - Register hotkeys on key down #657

This commit is contained in:
Robert committed 2021-09-18 13:45:07 +02:00
1 parent b4eb5e1797
commit da123e2fe2
3 files changed
+3 -3

No files matched your search

@@ -16,5 +16,5 @@
VerticalAlignment="Center"
materialDesign:TextFieldAssist.HasClearButton="True"
materialDesign:HintAssist.Hint="{Binding Hint}"
KeyUp="{s:Action TextBoxKeyUp}"/>
KeyDown="{s:Action TextBoxKeyDown}"/>
</UserControl>
@@ -59,7 +59,7 @@ namespace Artemis.UI.Screens.Sidebar.Dialogs.ProfileEdit
Hint = "Toggle hotkey";
}
public void TextBoxKeyUp(object sender, KeyEventArgs e)
public void TextBoxKeyDown(object sender, KeyEventArgs e)
{
if (e.Key >= Key.LeftShift && e.Key <= Key.RightAlt)
return;