[Webkit-unassigned] [Bug 8871] REGRESSION: Pressing Enter/Return in a text input removes the selected text

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Sat May 13 18:47:47 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=8871


darin at apple.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |darin at apple.com,
                   |                            |adele at apple.com
           Keywords|                            |EasyFix




------- Comment #3 from darin at apple.com  2006-05-13 18:47 PDT -------
The issue isn't whether the form has a submit button. It's whether there's a
form element at all. Here's the code from
HTMLInputElement::defaultEventHandler:

        } else if (clickDefaultFormButton && form()) {
            form()->submitClick();
            evt->setDefaultHandled();
        }

instead, the code should say:

        } else if (clickDefaultFormButton) {
            if (form())
                form()->submitClick();
            evt->setDefaultHandled();
        }

Whether Enter is "eaten" by the input element should not depend on whether
there's a form or not.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list