更新123

This commit is contained in:
GukSang.Jin
2026-06-15 11:24:48 +08:00
parent 0ccf78b392
commit 7158942669

View File

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