Fix equation submitting twice when submitted via enter key (#1195)
This commit is contained in:
parent
0465dc8538
commit
7fb341e9b2
@ -128,7 +128,9 @@ void CalculatorApp::Controls::MathRichEditBox::OnKeyUp(Platform::Object ^ sender
|
||||
void MathRichEditBox::OnMathTextPropertyChanged(Platform::String ^ oldValue, Platform::String ^ newValue)
|
||||
{
|
||||
SetMathTextProperty(newValue);
|
||||
SetValue(MathTextProperty, newValue);
|
||||
|
||||
// Get the new math text directly from the TextBox since the textbox may have changed its formatting
|
||||
SetValue(MathTextProperty, GetMathTextProperty());
|
||||
}
|
||||
|
||||
void MathRichEditBox::InsertText(Platform::String ^ text, int cursorOffSet, int selectionLength)
|
||||
|
Loading…
Reference in New Issue
Block a user