Describe the bug
When trying to "select all" when right-clicking on the main display output, you are not able to actually select all text.
Steps To Reproduce
Expected behavior
Display text appears selected.
Screenshots
Could not capture a good screenshot.
Device and Application Information
Additional context
Right-clicking again selects all text, so it appears this bug might only affect visuals.
Requested Assignment
I'm just reporting this problem. I don't want to fix it.
This is your friendly Microsoft Issue Bot. I created this issue automatically as requested by a team member.
Can I work on this?
Go for it, @praveensvsrk!
Right-clicking again selects all text, so it appears this bug might only affect visuals.
I selected only a part of the number, clicked somewhere else on the number pane (outside the number, so that focus is lost), then right clicked again on the number. Interestingly, the old selection persisted. So in your case, on right-clicking again, the number appeared as selected. Is this behavior (of persisting the previous selection) expected?
About the issue, looks like the cause here is the explicit _Focus_ call made to the outer/enclosing element during right-click
void CalculationResult::OnRightTapped(RightTappedRoutedEventArgs ^ e)
{
this->Focus(::FocusState::Programmatic);
}
Subsequently after clicking _Select All_, the number does not get focused, hence does not appear highlighted. To test out my hypothesis, I commented out the line which sets the focus; Highlighting works as expected. I am checking this issue further.