Skip to content
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

Show focus if button gets tabbed INTO #1458

Closed
wants to merge 1 commit into from

Conversation

mariusk
Copy link

@mariusk mariusk commented Aug 19, 2015

In a form, if the button gets tabbed into (e.g. from a TextView), the initial focus isn't handled properly (no visible sign that the button now has focus). Added check for tab key in keyUp handler which seems to solve it.

@mariusk mariusk changed the title Show focus if button gets tabbed INTO. Show focus if button gets tabbed INTO Aug 19, 2015
@hai-cea
Copy link
Member

hai-cea commented Aug 21, 2015

@mariusk Thanks for this - It seems as though we should be listening for tab presses on the window instead of on the actual button? This might be a flaw in the original implementation of EnhancedButton. What do you think?

@mariusk
Copy link
Author

mariusk commented Aug 21, 2015

I agree and I'm sure you're right. But keep in mind I'm ignorant on most of the inner workings, so it's just my $0.000002.

@hai-cea
Copy link
Member

hai-cea commented Aug 21, 2015

@mariusk Can you check out #1485 and see if it fixes the issue you found?

@mariusk
Copy link
Author

mariusk commented Aug 21, 2015

@hai-cea Tested it and it seems to work fine. Great job, thanks!

@hai-cea
Copy link
Member

hai-cea commented Aug 21, 2015

Thanks @mariusk !

@hai-cea hai-cea closed this Aug 21, 2015
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Nov 10, 2020
* Clear dependencies

* Update packages
@zannager zannager added the component: button This is the name of the generic UI component, not the React module! label Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: button This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants