vue-touch-keyboard icon indicating copy to clipboard operation
vue-touch-keyboard copied to clipboard

How to style on keypress

Open kelleysy opened this issue 7 years ago • 4 comments

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?

kelleysy avatar Jul 10 '17 17:07 kelleysy

Which browser?

icebob avatar Jul 10 '17 17:07 icebob

chrome

kelleysy avatar Jul 10 '17 17:07 kelleysy

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

icebob avatar Jul 10 '17 17:07 icebob

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.

kelleysy avatar Jul 10 '17 17:07 kelleysy