更新123
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Avalonia.Input;
|
||||
using Avalonia.Interactivity;
|
||||
using Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.ViewModels;
|
||||
using Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.Services;
|
||||
using Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.Models;
|
||||
@@ -22,7 +23,7 @@ namespace Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.Views
|
||||
this.licenseService = licenseService;
|
||||
InitializeComponent();
|
||||
Closed += OnClosed;
|
||||
KeyDown += OnKeyDown;
|
||||
AddHandler(KeyDownEvent, OnKeyDown, RoutingStrategies.Tunnel, handledEventsToo: true);
|
||||
DataContextChanged += OnDataContextChanged;
|
||||
}
|
||||
|
||||
@@ -45,8 +46,9 @@ namespace Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.Views
|
||||
|
||||
private void OnKeyDown(object? sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.Key == Key.F12
|
||||
if (e.Key == Key.L
|
||||
&& e.KeyModifiers.HasFlag(KeyModifiers.Control)
|
||||
&& e.KeyModifiers.HasFlag(KeyModifiers.Alt)
|
||||
&& e.KeyModifiers.HasFlag(KeyModifiers.Shift))
|
||||
{
|
||||
e.Handled = true;
|
||||
|
||||
Reference in New Issue
Block a user