Skip to content

Fix focus for EquationTextBox#787

Merged
joseartrivera merged 1 commit intomicrosoft:feature/GraphingCalculatorfrom
joseartrivera:joriv/focusbug
Nov 13, 2019
Merged

Fix focus for EquationTextBox#787
joseartrivera merged 1 commit intomicrosoft:feature/GraphingCalculatorfrom
joseartrivera:joriv/focusbug

Conversation

@joseartrivera
Copy link
Copy Markdown
Contributor

Part of #338

Description of the changes:

  • After submitting an equation with the enter key we should move focus away from the EquationTextBox . Previously this would happen anytime the equation was submitted, now it only occurs if it was submitted and the EquationTextBox has focus, allowing the user to tab away to submit and keep focus flowing to the next element as normal.

How changes were validated:

  • Manual tests

@joseartrivera joseartrivera added the graphing calculator Work items related to the graphing calculator feature. label Nov 8, 2019
@joseartrivera joseartrivera requested a review from sanderl November 8, 2019 20:43
void EquationTextBox::OnRichEditBoxGotFocus(Object ^ sender, RoutedEventArgs ^ e)
{
m_isFocused = true;
m_HasFocus = true;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this only for RichEditFocus of for the whole control?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically the whole control, but currently we only care when the RichEditBox gets focus

Copy link
Copy Markdown
Contributor

@sanderl sanderl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just noticed some weird behavior where tab navigation shows up after pressing enter even if it wasn't used before pressing enter.

@joseartrivera joseartrivera merged commit afc1b21 into microsoft:feature/GraphingCalculator Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

graphing calculator Work items related to the graphing calculator feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants