mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
Fix KBM Accessibility issues (#6379)
* Added an accessible name for the combo box * Add name for the type shortcut button * Add accessible name for the add new remapping button in both key remapping as well as shortcut remapping windows * Set accessible names for the delete button * Set the accessible name to the remapped to icon * Fix the font icon issue faced while using narrator * Fix accessible name for Add shortcut remapping button * Set the accessible name for the target app text box when it loses focus * fix comment
This commit is contained in:
@@ -36,6 +36,8 @@ void KeyDropDownControl::SetDefaultProperties(bool isShortcut)
|
||||
// Attach flyout to the drop down
|
||||
warningFlyout.as<Flyout>().Content(warningMessage.as<TextBlock>());
|
||||
dropDown.as<ComboBox>().ContextFlyout().SetAttachedFlyout((FrameworkElement)dropDown.as<ComboBox>(), warningFlyout.as<Flyout>());
|
||||
// To set the accessible name of the combo-box
|
||||
dropDown.as<ComboBox>().SetValue(Automation::AutomationProperties::NameProperty(), box_value(GET_RESOURCE_STRING(IDS_KEY_DROPDOWN_COMBOBOX)));
|
||||
}
|
||||
|
||||
// Function to check if the layout has changed and accordingly update the drop down list
|
||||
|
||||
Reference in New Issue
Block a user