[development] Form API and enter key press
Randy Fay
randy at randyfay.com
Wed Mar 3 15:13:58 UTC 2010
I'm interested, if you could solve this generically. It's annoyed me forever
- especially on the admin/settings/performance page where I was always
clearing the cache instead of saving my settings.
This is browser-dependent behavior. Firefox behaves differently from Chrome.
I believe Chrome just won't act if there's more than one button. Firefox
takes the first.
I'm definitely interested in a general solution.
-Randy
On Wed, Mar 3, 2010 at 4:01 AM, Pierre Rineau. <
pierre.rineau at makina-corpus.com> wrote:
> Found my own solution, a jQuery based script that searchs for a specific
> class on form input elements and trick the browser by preprending a
> cloned version of the default submit button on top of the form.
>
> If works well, the page remains CSS/XHTML compliant, and is, I think,
> cross browser compatible.
>
> Do you people think it worth the shot commiting this really simple
> module on drupal.org cvs and create a new project ?
>
> The fact is I need it on many modules, which are not dependent by the
> way, so I need this to be in its own projet.
>
> Any people interested?
>
> --
> Pierre Rineau
> Courriel -- Jabber/XMPP(/GTalk): pierre.rineau at processus.org
> Tél: +33 (0)6 59 46 62 27
>
>
--
Randy Fay
Drupal Development, troubleshooting, and debugging
randy at randyfay.com
+1 970.462.7450
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100303/f8bf475d/attachment.html
More information about the development
mailing list