mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-21 22:03:11 -07:00
Do not submit equations when in read only mode (#1201)
This commit is contained in:
parent
264b5204d3
commit
f9a1ae1a28
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ void CalculatorApp::Controls::MathRichEditBox::OnLosingFocus(Windows::UI::Xaml::
|
|||
|
||||
void CalculatorApp::Controls::MathRichEditBox::OnKeyUp(Platform::Object ^ sender, Windows::UI::Xaml::Input::KeyRoutedEventArgs ^ e)
|
||||
{
|
||||
if (e->Key == VirtualKey::Enter)
|
||||
if (!this->IsReadOnly && e->Key == VirtualKey::Enter)
|
||||
{
|
||||
SubmitEquation(EquationSubmissionSource::ENTER_KEY);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue