mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-23 23:20:05 +01: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:
@@ -90,6 +90,8 @@ void SingleKeyRemapControl::AddNewControlKeyRemapRow(Grid& parent, std::vector<s
|
||||
parent.SetRow(arrowIcon, parent.RowDefinitions().Size() - 1);
|
||||
parent.Children().Append(arrowIcon);
|
||||
|
||||
// To set the accessible name of the arrow icon by setting the accessible name of the remapped key
|
||||
keyboardRemapControlObjects[keyboardRemapControlObjects.size() - 1][1]->getSingleKeyRemapControl().SetValue(Automation::AutomationProperties::NameProperty(), box_value(GET_RESOURCE_STRING(IDS_REMAPPED_TO)));
|
||||
// SingleKeyRemapControl for the new remap key
|
||||
parent.Children().Append(keyboardRemapControlObjects[keyboardRemapControlObjects.size() - 1][1]->getSingleKeyRemapControl());
|
||||
|
||||
@@ -159,6 +161,8 @@ void SingleKeyRemapControl::AddNewControlKeyRemapRow(Grid& parent, std::vector<s
|
||||
// delete the SingleKeyRemapControl objects so that they get destructed
|
||||
keyboardRemapControlObjects.erase(keyboardRemapControlObjects.begin() + bufferIndex);
|
||||
});
|
||||
// To set the accessible name of the delete button
|
||||
deleteRemapKeys.SetValue(Automation::AutomationProperties::NameProperty(), box_value(GET_RESOURCE_STRING(IDS_DELETE_REMAPPING_BUTTON)));
|
||||
parent.SetColumn(deleteRemapKeys, KeyboardManagerConstants::RemapTableRemoveColIndex);
|
||||
parent.SetRow(deleteRemapKeys, parent.RowDefinitions().Size() - 1);
|
||||
parent.Children().Append(deleteRemapKeys);
|
||||
|
||||
Reference in New Issue
Block a user