mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
handle key events (#8279)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user