Yout might also try setting a one-time keyup in which you test the
CTRL key state. But on a PC that key is the ALT key. Are you using
MAC?

On May 28, 7:11 am, 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