mirror of
https://github.com/Microsoft/calculator.git
synced 2025-07-30 11:38:26 -07:00
Fixes #282 Narrator does not convey error information when no more Right Parenthesis can be added in expression. (#284)
* Added narrator announcements when right parenthesis is clicked
This commit is contained in:
parent
ac5292cf88
commit
d37c75fec2
18 changed files with 165 additions and 31 deletions
|
@ -109,7 +109,6 @@ namespace CalculationManager
|
|||
|
||||
/// <summary>
|
||||
/// Callback from the engine
|
||||
/// Used to set the current unmatched open parenthesis count
|
||||
/// </summary>
|
||||
/// <param name="parenthesisCount">string containing the parenthesis count</param>
|
||||
void CalculatorManager::SetParenDisplayText(const wstring& parenthesisCount)
|
||||
|
@ -117,6 +116,14 @@ namespace CalculationManager
|
|||
m_displayCallback->SetParenDisplayText(parenthesisCount);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Callback from the engine
|
||||
/// </summary>
|
||||
void CalculatorManager::OnNoRightParenAdded()
|
||||
{
|
||||
m_displayCallback->OnNoRightParenAdded();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reset CalculatorManager.
|
||||
/// Set the mode to the standard calculator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue