mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-21 05:43:10 -07:00
Fix crash when tabbing through KGF (#1037)
* Check readonly * Update src/Calculator/Controls/MathRichEditBox.cpp Co-Authored-By: Rudy Huyn <rudyhuyn@gmail.com> Co-authored-by: Rudy Huyn <rudyhuyn@gmail.com>
This commit is contained in:
parent
11ab829b1b
commit
8483b68f12
1 changed files with 4 additions and 1 deletions
|
@ -111,7 +111,10 @@ void MathRichEditBox::SetMathTextProperty(String ^ newValue)
|
||||||
|
|
||||||
void CalculatorApp::Controls::MathRichEditBox::OnLosingFocus(Windows::UI::Xaml::UIElement ^ sender, Windows::UI::Xaml::Input::LosingFocusEventArgs ^ args)
|
void CalculatorApp::Controls::MathRichEditBox::OnLosingFocus(Windows::UI::Xaml::UIElement ^ sender, Windows::UI::Xaml::Input::LosingFocusEventArgs ^ args)
|
||||||
{
|
{
|
||||||
SubmitEquation(EquationSubmissionSource::FOCUS_LOST);
|
if (!this->IsReadOnly)
|
||||||
|
{
|
||||||
|
SubmitEquation(EquationSubmissionSource::FOCUS_LOST);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CalculatorApp::Controls::MathRichEditBox::OnKeyUp(Platform::Object ^ sender, Windows::UI::Xaml::Input::KeyRoutedEventArgs ^ e)
|
void CalculatorApp::Controls::MathRichEditBox::OnKeyUp(Platform::Object ^ sender, Windows::UI::Xaml::Input::KeyRoutedEventArgs ^ e)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue