From afa914754c37e733d3d86957bdab0c19fe5c871a Mon Sep 17 00:00:00 2001 From: Owen McGirr Date: Tue, 28 Jul 2026 12:12:14 +0100 Subject: [PATCH] Improve switch profile accessibility --- .../SwitchControlProfileWindow.xaml | 135 ++++++++++++++-- .../SwitchControlProfileWindow.xaml.cs | 93 +++++++++-- src/SwitchifyPc.Tests/ButtonStyleTests.cs | 75 ++++++++- .../SwitchControlProfileWindowTests.cs | 148 ++++++++++++++++-- 4 files changed, 416 insertions(+), 35 deletions(-) diff --git a/src/SwitchifyPc.App/SwitchControlProfileWindow.xaml b/src/SwitchifyPc.App/SwitchControlProfileWindow.xaml index c206bed..50fb9e4 100644 --- a/src/SwitchifyPc.App/SwitchControlProfileWindow.xaml +++ b/src/SwitchifyPc.App/SwitchControlProfileWindow.xaml @@ -15,7 +15,8 @@ Background="{DynamicResource ChromeBackground}" Foreground="{DynamicResource Text}" WindowStyle="None" - SizeChanged="Window_SizeChanged"> + SizeChanged="Window_SizeChanged" + PreviewKeyDown="Window_PreviewKeyDown"> + +