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:
		@@ -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)
 | 
			
		||||
{
 | 
			
		||||
    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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user