From kde-commits Tue Mar 15 06:36:44 2005 From: Mario Weilguni Date: Tue, 15 Mar 2005 06:36:44 +0000 To: kde-commits Subject: kdelibs/khtml/html Message-Id: <20050315063644.34ACC12E73 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=111086861612618 CVS commit by mario: BUG:53038 FORM elements accept tab focus now. M +7 -2 html_formimpl.cpp 1.428 --- kdelibs/khtml/html/html_formimpl.cpp #1.427:1.428 @@ -899,7 +899,12 @@ void HTMLGenericFormElementImpl::setDisa bool HTMLGenericFormElementImpl::isFocusable() const { - return m_render && m_render->isWidget() && + return (m_render && m_render->isWidget() && static_cast(m_render)->widget() && - static_cast(m_render)->widget()->focusPolicy() >= QWidget::TabFocus; + static_cast(m_render)->widget()->focusPolicy() >= QWidget::TabFocus) || + /* INPUT TYPE="image" supports focus too */ + ( + id() == ID_INPUT && + static_cast(this)->inputType() == HTMLInputElementImpl::IMAGE + ); }