You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Chris Pratt <th...@gmail.com> on 2006/10/26 23:09:50 UTC

Re: disable enter key functionality

It's definitely not something that Struts can do, but you can do that using
a JavaScript onkeypress handler that returns false if window.event.keyCode== 13.
  (*Chris*)

On 10/26/06, fea jabi <zy...@hotmail.com> wrote:
>
> Is it possible in struts to disable the functionality of the enter key
> which
> would usually execute the first submit button in the page. Can we do this
> at
> form level?
>
> If so how to do this?
>
> Thanks.
>
> _________________________________________________________________
> Add a Yahoo! contact to Windows Live Messenger for a chance to win a free
> trip!
>
> http://www.imagine-windowslive.com/minisites/yahoo/default.aspx?locale=en-us&hmtagline
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>