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

List:       kde-commits
Subject:    kdelibs/khtml/html
From:       Mario Weilguni <mweilguni () sime ! com>
Date:       2005-03-08 7:07:06
Message-ID: 20050308070706.1606E103CB () office ! kde ! org
[Download RAW message or body]

CVS commit by mario: 

BUGS:100235
Disabled submit buttons are no longer activated by pressing enter/return


  M +5 -2      html_formimpl.cpp   1.425


--- kdelibs/khtml/html/html_formimpl.cpp  #1.424:1.425
@@ -479,6 +479,9 @@ void HTMLFormElementImpl::submitFromKeyb
             case HTMLInputElementImpl::SUBMIT:
             case HTMLInputElementImpl::IMAGE:
+                if(!current->disabled()) { 
                 current->activate();
                 return;
+                } 
+                break; 
             case HTMLInputElementImpl::TEXT:
             case HTMLInputElementImpl::PASSWORD:


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

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