Add hint about MathRichEditBox's context menu for narrator

This commit is contained in:
Han Zhang 2024-03-26 12:41:16 +08:00
commit 18dd0ecf35
2 changed files with 5 additions and 0 deletions

View file

@ -4750,4 +4750,8 @@
<value>Settings page</value>
<comment>Announcement used when Settings page is opened</comment>
</data>
<data name="MathRichEditBox.[using:Windows.UI.Xaml.Automation]AutomationProperties.Name" xml:space="preserve">
<value>Press Shift + F10 to open the context menu</value>
<comment>Screen reader prompt for the equation and accelerator to context menu</comment>
</data>
</root>

View file

@ -661,6 +661,7 @@
FontSize="{TemplateBinding FontSize}"
FontWeight="{TemplateBinding FontWeight}"
AcceptsReturn="false"
AutomationProperties.Name="{utils:ResourceString Name=MathRichEditBox/[using:Windows.UI.Xaml.Automation]AutomationProperties/Name}"
InputScope="Text"
MathText="{Binding MathEquation, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
MaxLength="2048"