[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdelibs/khtml/html
From: Germain Garand <germain () ebooksfrance ! com>
Date: 2005-10-19 8:38:37
Message-ID: 1129711117.143520.22504.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 471912 by ggarand:
send a click event also when a form is activated by pressing enter from one of the fields.
Matches the behaviour of all other browsers.
BUG: 91652
M +2 -2 html_formimpl.cpp
--- branches/KDE/3.5/kdelibs/khtml/html/html_formimpl.cpp #471911:471912
@@ -473,7 +473,7 @@
if (it.current()->id() == ID_BUTTON) {
HTMLButtonElementImpl* const current = static_cast<HTMLButtonElementImpl *>(it.current());
if (current->buttonType() == HTMLButtonElementImpl::SUBMIT && !current->disabled()) {
- current->activate();
+ current->click();
return;
}
} else if (it.current()->id() == ID_INPUT) {
@@ -482,7 +482,7 @@
case HTMLInputElementImpl::SUBMIT:
case HTMLInputElementImpl::IMAGE:
if(!current->disabled()) {
- current->activate();
+ current->click();
return;
}
break;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic