handle key events (#8279)

This commit is contained in:
Seraphima Zykova
2020-11-30 22:07:03 +03:00
committed by GitHub
parent f86182d062
commit c6078e3136
3 changed files with 23 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
using System;
using System.Reflection;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
using FancyZonesEditor.Utils;
@@ -32,6 +33,9 @@ namespace FancyZonesEditor.Models
Window.Background = (Brush)properties[milliseconds % properties.Length].GetValue(null, null);
}
Window.KeyUp += ((App)Application.Current).App_KeyUp;
Window.KeyDown += ((App)Application.Current).App_KeyDown;
Window.Left = workArea.X;
Window.Top = workArea.Y;
Window.Width = workArea.Width;