Fix tracing button not receiving focus after the 'esc' key is used to exit tracing mode (#1272)

This commit is contained in:
Pepe Rivera 2020-06-16 09:58:02 -07:00 committed by GitHub
parent db15b602f9
commit 8f56ad0dc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -635,6 +635,7 @@ void CalculatorApp::GraphingCalculator::ActiveTracing_KeyUp(Windows::UI::Core::C
if (args->VirtualKey == VirtualKey::Escape)
{
GraphingControl->ActiveTracing = false;
ActiveTracing->Focus(::FocusState::Programmatic);
args->Handled = true;
}
}