1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Profile configuration - Register hotkeys on key down #657

This commit is contained in:
Robert 2021-09-18 13:45:07 +02:00
parent b4eb5e1797
commit da123e2fe2
3 changed files with 3 additions and 3 deletions

View File

@ -16,5 +16,5 @@
VerticalAlignment="Center"
materialDesign:TextFieldAssist.HasClearButton="True"
materialDesign:HintAssist.Hint="{Binding Hint}"
KeyUp="{s:Action TextBoxKeyUp}"/>
KeyDown="{s:Action TextBoxKeyDown}"/>
</UserControl>

View File

@ -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;

View File

@ -1,7 +1,7 @@
{
"version": 1,
"dependencies": {
".NETCoreApp,Version=v5.0": {
"net5.0-windows10.0.17763": {
"FluentValidation": {
"type": "Direct",
"requested": "[10.3.0, )",