From d50b89262c10a3625d379329ca6c5d2d3208b9cf Mon Sep 17 00:00:00 2001 From: Davide Giacometti Date: Tue, 13 Dec 2022 18:20:29 +0100 Subject: [PATCH] [QuickAccent]Set initial selection when characters change (#22704) --- src/modules/poweraccent/PowerAccent.UI/Selector.xaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/poweraccent/PowerAccent.UI/Selector.xaml.cs b/src/modules/poweraccent/PowerAccent.UI/Selector.xaml.cs index caaffe6008..ba5abce25a 100644 --- a/src/modules/poweraccent/PowerAccent.UI/Selector.xaml.cs +++ b/src/modules/poweraccent/PowerAccent.UI/Selector.xaml.cs @@ -66,6 +66,7 @@ public partial class Selector : Window, IDisposable, INotifyPropertyChanged if (isActive) { characters.ItemsSource = chars; + characters.SelectedIndex = 0; this.UpdateLayout(); // Required for filling the actual width/height before positioning. SetWindowPosition(); Show();