From 71589426690c224f91b08758ddcc02ffc8930284 Mon Sep 17 00:00:00 2001 From: "GukSang.Jin" Date: Mon, 15 Jun 2026 11:24:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0123?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/MainWindow.axaml.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Footwear Test methodsfor wholeshoe Slipresistanceperformance/Views/MainWindow.axaml.cs b/Footwear Test methodsfor wholeshoe Slipresistanceperformance/Views/MainWindow.axaml.cs index edc8961..f0c119f 100644 --- a/Footwear Test methodsfor wholeshoe Slipresistanceperformance/Views/MainWindow.axaml.cs +++ b/Footwear Test methodsfor wholeshoe Slipresistanceperformance/Views/MainWindow.axaml.cs @@ -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;