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" VerticalAlignment="Center"
materialDesign:TextFieldAssist.HasClearButton="True" materialDesign:TextFieldAssist.HasClearButton="True"
materialDesign:HintAssist.Hint="{Binding Hint}" materialDesign:HintAssist.Hint="{Binding Hint}"
KeyUp="{s:Action TextBoxKeyUp}"/> KeyDown="{s:Action TextBoxKeyDown}"/>
</UserControl> </UserControl>
@@ -59,7 +59,7 @@ namespace Artemis.UI.Screens.Sidebar.Dialogs.ProfileEdit
Hint = "Toggle hotkey"; 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) if (e.Key >= Key.LeftShift && e.Key <= Key.RightAlt)
return; return;
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"version": 1, "version": 1,
"dependencies": { "dependencies": {
".NETCoreApp,Version=v5.0": { "net5.0-windows10.0.17763": {
"FluentValidation": { "FluentValidation": {
"type": "Direct", "type": "Direct",
"requested": "[10.3.0, )", "requested": "[10.3.0, )",