Have you tried simply setting focus to one of the divs?

$('div:first')[0].focus();

On May 24, 4:40 pm, brassica <[EMAIL PROTECTED]> wrote:
> hi all, i seem to have a problem with using Hotkeys and intercept
>
> I would appreciate it very much if someone would explain why the error
> is occurring and a solution ty in advance
>
> OK the scenario....
>
> I have a (series of ) AJAX call(s) after which i am populating a DIV
> with other DIVS arranged like a matrix . The user can use arrow keys
> to move between the DIVS or use letter keys to fill a DIV with the
> corresponding letter. A user can also click on a DIV to make it the
> active DIV to receive input.
>
> What is happening is that a user has to click on a DIV in order for
> the various functions to kick in.
>
> If after the html is rendered a user presses a letter or an arrow key
> WITHOUT clicking a box first an error is generated (from HotKeys)
>
> that.all[element] has no properties (line 82)
> [Break on this error] var cbMap =
> that.all[element].events[type].callbackMap;
>
> What i want is a user to be able to start typing or using arrow keys
> straight away. i have tried to use trigger to emulate a click but that
> doesnt seem to work. I think it something to do with focus. Can anyone
> help me please?
>
> Thank you

Reply via email to