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