[Settings]Colorpicker settings page focus a11y fixes (#32582)

* fixed dialog tab navigation
* fixed color formats list focus
This commit is contained in:
Davide Giacometti
2024-04-23 16:36:12 +02:00
committed by GitHub
parent 5c352a3bf3
commit cc4bd4486c
4 changed files with 21 additions and 6 deletions

View File

@@ -424,10 +424,11 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
return colorFormatModel.IsValid;
}
internal void DeleteModel(ColorFormatModel colorFormatModel)
internal int DeleteModel(ColorFormatModel colorFormatModel)
{
var deleteIndex = ColorFormats.IndexOf(colorFormatModel);
ColorFormats.Remove(colorFormatModel);
SetPreviewSelectedIndex();
return deleteIndex;
}
internal void UpdateColorFormat(string oldName, ColorFormatModel colorFormat)