[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdelibs/khtml/html
From:       Maks Orlovich <maksim () kde ! org>
Date:       2005-11-04 5:21:46
Message-ID: 1131081706.301141.8759.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 477417 by orlovich:

Disabled controls aren't focusable. )Funny how Qt can make things half-focused if 
forced)
BUG:97250


 M  +1 -1      html_formimpl.cpp  


--- branches/KDE/3.5/kdelibs/khtml/html/html_formimpl.cpp #477416:477417
@@ -930,7 +930,7 @@
 
 bool HTMLGenericFormElementImpl::isFocusable() const
 {
-    return (m_render && m_render->isWidget() &&
+    return (!disabled() && m_render && m_render->isWidget() &&
         static_cast<RenderWidget*>(m_render)->widget() &&
         static_cast<RenderWidget*>(m_render)->widget()->focusPolicy() >= QWidget::TabFocus) ||
 		/* INPUT TYPE="image" supports focus too */
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic