[Keyboard Manager] Fix focusable elements should have different names accessibility issue (#6672)

* Add listview

* Added row index to accessible names

* Cleanup rowIndex

* Fixed accessibility issue with ComboBox

* Updated comments
This commit is contained in:
Arjun Balgovind
2020-09-18 17:12:37 -07:00
committed by GitHub
parent 28cae124d1
commit e135153c45
7 changed files with 87 additions and 27 deletions

View File

@@ -12,6 +12,7 @@ namespace winrt::Windows::UI::Xaml
struct StackPanel;
struct Grid;
struct TextBox;
struct Button;
}
}
@@ -28,7 +29,10 @@ private:
winrt::Windows::Foundation::IInspectable shortcutControlLayout;
// Function to set the accessible name of the target app text box
static void SetAccessibleNameForTextBox(TextBox targetAppTextBox);
static void SetAccessibleNameForTextBox(TextBox targetAppTextBox, int rowIndex);
// Function to set the accessible names for all the controls in a row
static void UpdateAccessibleNames(StackPanel sourceColumn, StackPanel mappedToColumn, TextBox targetAppTextBox, Button deleteButton, int rowIndex);
public:
// Handle to the current Edit Shortcuts Window