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

How to style on keypress #9

Open
kelleysy opened this issue Jul 10, 2017 · 4 comments
Open

How to style on keypress #9

kelleysy opened this issue Jul 10, 2017 · 4 comments

Comments

@kelleysy
Copy link

Hi,

I was wondering how or If I can edit the input on keydown or keypress?
In the working jsfiddle https://jsfiddle.net/icebob/88n7c1L8/ when a user presses on a key, the input box loses focus. I would like to keep focus and have the focus style applied when I press on any key. Is there any way I can do this?

@icebob
Copy link
Owner

icebob commented Jul 10, 2017

Which browser?

@kelleysy
Copy link
Author

chrome

@icebob
Copy link
Owner

icebob commented Jul 10, 2017

I tried, but I don't find error with focus. When I'm writing to input it doesn't lost focus. (in Chrome)

@kelleysy
Copy link
Author

Try clicking on the keyboard only. When I use my keyboard, the input does not lose focus either, but when actually I click on the letters, it loses focus for a second.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants