[ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to