You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Janne Hietamäki (JIRA)" <ji...@apache.org> on 2007/03/23 10:26:32 UTC

[jira] Resolved: (WICKET-2) Input field with autocomplet behavior does not submit the form via enter key

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

Janne Hietamäki resolved WICKET-2.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3

> Input field with autocomplet behavior does not submit the form via enter key
> ----------------------------------------------------------------------------
>
>                 Key: WICKET-2
>                 URL: https://issues.apache.org/jira/browse/WICKET-2
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 1.2.2
>            Reporter: Tomas Drencak
>         Assigned To: Janne Hietamäki
>             Fix For: 1.3
>
>         Attachments: wicket-autocomplete.js
>
>
> When field has a focus, autocomplete javascripts blocks all enter key presses. That's why form can't be submitted. Enter key press should be blocked only when autocomplete view is visible
> You can change wicket-autocomplete.js in initialize() function:
> from
>         obj.onkeypress=function(event){
>             if(wicketKeyCode(getEvent(event))==KEY_ENTER){
>                 return killEvent(event);
>             }
>         }
> to
>         obj.onkeypress=function(event){
>             if(wicketKeyCode(getEvent(event))==KEY_ENTER && visible==1){
>                 return killEvent(event);
>             }
>         }

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