Colin_McCrae
12 years agoCommunity Hero
Long Keypresses?
Hi
I have a website (IE being the browser in use) which uses long keypresses to trigger certain actions.
I can't seem to find an easy way to send long (half a second plus) keypresses to the browser object. KeyUp and KeyDown are only applicable to the desktop. Repeat instances of "Keys" doesn't work. It's interpreted (rightly so) as multiple fast individual keypresses, not a long single one.
Note - I have several instances of the IE open, each with a different "version" (for want of a better description) of the site. Controlling the individual browsers using identication by URL is fine. Not sure if this may influence any potential answer here.
I'd rather not rely on methods like "focus" when using multiple bowsers as I've found them to be very unreliable.
I have a website (IE being the browser in use) which uses long keypresses to trigger certain actions.
I can't seem to find an easy way to send long (half a second plus) keypresses to the browser object. KeyUp and KeyDown are only applicable to the desktop. Repeat instances of "Keys" doesn't work. It's interpreted (rightly so) as multiple fast individual keypresses, not a long single one.
Note - I have several instances of the IE open, each with a different "version" (for want of a better description) of the site. Controlling the individual browsers using identication by URL is fine. Not sure if this may influence any potential answer here.
I'd rather not rely on methods like "focus" when using multiple bowsers as I've found them to be very unreliable.