mirror of
https://github.com/Microsoft/calculator.git
synced 2025-07-13 00:32:52 -07:00
Narrator is not providing any confirmation after activating Keep on top button (#1300)
* Narrator is not providing any confirmation after activating Keep on top button #1173
This commit is contained in:
parent
64df01cecc
commit
ca53d01e4e
4 changed files with 35 additions and 0 deletions
|
@ -41,6 +41,8 @@ namespace
|
|||
StringReference DisplayValuePropertyName(L"DisplayValue");
|
||||
StringReference CalculationResultAutomationNamePropertyName(L"CalculationResultAutomationName");
|
||||
StringReference IsBitFlipCheckedPropertyName(L"IsBitFlipChecked");
|
||||
StringReference CalcAlwaysOnTop(L"CalcAlwaysOnTop");
|
||||
StringReference CalcBackToFullView(L"CalcBackToFullView");
|
||||
}
|
||||
|
||||
namespace CalculatorResourceKeys
|
||||
|
@ -1162,6 +1164,19 @@ void StandardCalculatorViewModel::OnPropertyChanged(String ^ propertyname)
|
|||
TraceLogger::GetInstance()->UpdateButtonUsage(
|
||||
IsBitFlipChecked ? NumbersAndOperatorsEnum::BitflipButton : NumbersAndOperatorsEnum::FullKeypadButton, ViewMode::Programmer);
|
||||
}
|
||||
else if (propertyname == IsAlwaysOnTopPropertyName)
|
||||
{
|
||||
String ^ announcement;
|
||||
if (IsAlwaysOnTop)
|
||||
{
|
||||
announcement = AppResourceProvider::GetInstance()->GetResourceString(CalcAlwaysOnTop);
|
||||
}
|
||||
else
|
||||
{
|
||||
announcement = AppResourceProvider::GetInstance()->GetResourceString(CalcBackToFullView);
|
||||
}
|
||||
Announcement = CalculatorAnnouncement::GetAlwaysOnTopChangedAnnouncement(announcement);
|
||||
}
|
||||
}
|
||||
|
||||
void StandardCalculatorViewModel::SetCalculatorType(ViewMode targetState)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue