From kde-commits Fri Aug 22 21:36:29 2008 From: Maks Orlovich Date: Fri, 22 Aug 2008 21:36:29 +0000 To: kde-commits Subject: branches/KDE/4.1/kdelibs/khtml Message-Id: <1219440989.875466.23483.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=121944099907587 SVN commit 851099 by orlovich: Fix a bunch of bugs with focus of form elements: 1) Don't allow a disabled/readonly focus element to be focused 2) Cleaer focus from an element when it gets disabled 3) readonly things shouldn't be focusable either BUG: 159682 M +1 -1 html/html_formimpl.cpp M +7 -0 rendering/render_form.cpp M +5 -0 xml/dom_docimpl.cpp --- branches/KDE/4.1/kdelibs/khtml/html/html_formimpl.cpp #851098:851099 @@ -979,7 +979,7 @@ bool HTMLGenericFormElementImpl::isFocusable() const { - if (disabled()) + if (disabled() || readOnly()) return false; //Non-widget INPUT TYPE="image" and