[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 74232] input focus after form auto fill from wallet/history
From: George Staikos <staikos () kde ! org>
Date: 2004-11-06 14:18:30
Message-ID: 20041106141830.11341.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=74232
staikos kde org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
------- Additional Comments From staikos kde org 2004-11-06 15:18 -------
CVS commit by staikos:
Focus on the last filled element in a filled form when filling forms.
FEATURE: 74232
M +12 -2 html_formimpl.cpp 1.402
--- kdelibs/khtml/html/html_formimpl.cpp #1.401:1.402
@ -443,4 +443,5 @ void HTMLFormElementImpl::walletOpened(K
return; // failed, abort
+ HTMLInputElementImpl *last = 0L;
for (QPtrListIterator<HTMLGenericFormElementImpl> it(formElements); it.current(); ++it) {
if (it.current()->id() == ID_INPUT) {
@ -448,6 +449,15 @ void HTMLFormElementImpl::walletOpened(K
if (current->inputType() == HTMLInputElementImpl::PASSWORD ||
current->inputType() == HTMLInputElementImpl::TEXT &&
- map.contains(current->name().string()))
+ map.contains(current->name().string())) {
current->setValue(map[current->name().string()]);
+ last = current;
+ }
+ }
+ }
+
+ if (last) {
+ RenderWidget *r = static_cast<RenderWidget*>(last->renderer());
+ if (r && r->widget()) {
+ r->widget()->setFocus();
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic