Additional testing with FireBug reveals that the JavaScript engine is
reporting an error when the Escape or Enter key is hit:
document.getElementById("cancelLink9d7").click is not a function
http://.../resources/wicket.contrib.input.events.InputBehavior/shortcuts.js
Line 4
It seems like somehow that click function doesn't exist in Firefox...
Researching online a bit confirms this... for example:
http://quomon.com/question_simulation-click-html-anchor-javascript_2786.aspx
My guess is that the input-events package was written to work with buttons,
which have a click event, and not anchor tags, which don't, which means I'll
need to modify that code a bit to work with anchor tags...
dukejansen wrote:
>
> Has anyone had any issues getting the wicket-contrib-input-events package
> to work properly with Mozilla?
>
> It seems to work great in IE, but somehow my events are not being picked
> up in Firefox.
>
> Specifically, let's say I have a link which launches a modal, and inside
> that modal is a panel with an OK button and a Cancel button. I have set up
> keyboard shortcuts so that Escape fires the Cancel onclick event and Enter
> fires the OK onclick event.
>
> This works great in IE, but in Firefox when I hit "Enter" it seems to
> think I'm clicking the link that was originally clicked to launch the
> modal - the link that presumably still has focus behind the modal mask.
>
> I believe that Nino actually tested against FF2, so I was surprised by
> this, and thought perhaps I'm seeing the result of some kind of
> interaction with other JavaScript on the page.
>
> Has anyone else run into this, and if so do you have any wisdom to share?
>
> Thanks.
>
> -Jason
>
--
View this message in context:
http://www.nabble.com/Issues-with-wicket-contrib-input-events-in-Mozilla-tp21718528p21718790.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]