From da123e2fe231436871c2d61d472b6eabd9b05820 Mon Sep 17 00:00:00 2001 From: Robert Date: Sat, 18 Sep 2021 13:45:07 +0200 Subject: [PATCH] Profile configuration - Register hotkeys on key down #657 --- .../Dialogs/ProfileEdit/ProfileConfigurationHotkeyView.xaml | 2 +- .../Dialogs/ProfileEdit/ProfileConfigurationHotkeyViewModel.cs | 2 +- src/Artemis.UI/packages.lock.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Artemis.UI/Screens/Sidebar/Dialogs/ProfileEdit/ProfileConfigurationHotkeyView.xaml b/src/Artemis.UI/Screens/Sidebar/Dialogs/ProfileEdit/ProfileConfigurationHotkeyView.xaml index badf3bd73..a582644b1 100644 --- a/src/Artemis.UI/Screens/Sidebar/Dialogs/ProfileEdit/ProfileConfigurationHotkeyView.xaml +++ b/src/Artemis.UI/Screens/Sidebar/Dialogs/ProfileEdit/ProfileConfigurationHotkeyView.xaml @@ -16,5 +16,5 @@ VerticalAlignment="Center" materialDesign:TextFieldAssist.HasClearButton="True" materialDesign:HintAssist.Hint="{Binding Hint}" - KeyUp="{s:Action TextBoxKeyUp}"/> + KeyDown="{s:Action TextBoxKeyDown}"/> \ No newline at end of file diff --git a/src/Artemis.UI/Screens/Sidebar/Dialogs/ProfileEdit/ProfileConfigurationHotkeyViewModel.cs b/src/Artemis.UI/Screens/Sidebar/Dialogs/ProfileEdit/ProfileConfigurationHotkeyViewModel.cs index 000b32945..183447733 100644 --- a/src/Artemis.UI/Screens/Sidebar/Dialogs/ProfileEdit/ProfileConfigurationHotkeyViewModel.cs +++ b/src/Artemis.UI/Screens/Sidebar/Dialogs/ProfileEdit/ProfileConfigurationHotkeyViewModel.cs @@ -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; diff --git a/src/Artemis.UI/packages.lock.json b/src/Artemis.UI/packages.lock.json index a235de541..57c898322 100644 --- a/src/Artemis.UI/packages.lock.json +++ b/src/Artemis.UI/packages.lock.json @@ -1,7 +1,7 @@ { "version": 1, "dependencies": { - ".NETCoreApp,Version=v5.0": { + "net5.0-windows10.0.17763": { "FluentValidation": { "type": "Direct", "requested": "[10.3.0, )",