You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Marcus Schulte (JIRA)" <de...@tapestry.apache.org> on 2008/09/10 19:43:46 UTC

[jira] Updated: (TAPESTRY-1807) Default buttons for forms

     [ https://issues.apache.org/jira/browse/TAPESTRY-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcus Schulte updated TAPESTRY-1807:
-------------------------------------

    Fix Version/s:     (was: 4.1.6)
                   4.1.7

> Default buttons for forms
> -------------------------
>
>                 Key: TAPESTRY-1807
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1807
>             Project: Tapestry
>          Issue Type: New Feature
>          Components: Core Components, Framework
>    Affects Versions: 4.1.3
>            Reporter: Andreas Andreou
>             Fix For: 4.1.7
>
>
> This is to simplify handling of the ENTER key and will allow specifying which button
> should get 'clicked' - it can even apply to form sub-regions.
> Implementation details:
> <div onkeydown="return fireDefaultButton(event, 'derfaultButtonId')">...</div>
> function fireDefaultButton(event, target) {
> if (event.keyCode == 13 && !(event.srcElement && (event.srcElement.tagName.toLowerCase() == "textarea"))) {
> // handle button click
>   }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org