-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixes #3654 - NumericUpDown not focusable by pressing tab #3656
fixes #3654 - NumericUpDown not focusable by pressing tab #3656
Conversation
removed setting IsTabStop again. When the control gets focused, all the text of the |
if ((!e.Handled) && (numericUpDown._textBoxField != null)) | ||
{ | ||
numericUpDown._textBoxField.Focus(); | ||
numericUpDown._textBoxField.SelectAll(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though I typically like this SelectAll behavior on my apps I am hesitant to add it to the control by default. What about simply adding a new SelectAll method to this control so that apps can call it if they want that behavior?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, as I stated above it's debatable if SelectAll
should be called inside of the event handler or not.
I guess with your suggestion we get the best of both worlds.
Hey @corvinsz, while reviewing your PR, I'd suggest the following code changes: You can also review and apply these suggestions locally on your machine. Learn more about GitKraken Code Suggest
Join your team on GitKraken to speed up PR review. |
This PR is marked stale because it has been open 60 days with no activity. Remove stale label or update the PR, otherwise it will be closed in 14 days. |
…ult NumericUpDown control focus PART_TextBox of NumericUpDown control if it gets focus and enable moving focus with tab (and shift+tab) MaterialDesignInXAML#3654. Also removed the IsTapStop on the Template because that is not longer needed renamed variable (copy paste mistake) Applying code suggestions 31659b
57ddd41
to
528695c
Compare
set IsTabStop to False on the default NumericUpDown control style