I don't know any way to read a key state, but you can probably work
around the problem by putting your application in an iframe and
holding the key state in the containing document.
Alternatively, you can save the state of the Ctrl key in a cookie or
in the window name. (http://www.thomasfrank.se/sessionvars.html).

On Jun 30, 2:48 pm, Charles Sexton <[EMAIL PROTECTED]> wrote:
> Anyone?
>
> On May 28, 12:11 pm, Charles Sexton <[EMAIL PROTECTED]> wrote:
>
> > Hi guys and girls,
>
> > I don't know if this is possible, but I'm aiming to detect whether or
> > not a key is pressed, as in the key is already pressed when the page
> > loads.
>
> > My application changes the page when Ctrl+arrow is pressed, but
> > without being able to detect whether Ctrl is still pressed when the
> > next page loads, both keys have to be pressed again.
>
> > So is there any way to detect if a key is currently pressed, but the
> > keystroke occurred before the page loaded?
>
> > Many thanks to all who help,
>
> > Charles

Reply via email to