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

List:       kfm-devel
Subject:    [PATCH] enable onblur
From:       Luciano Montanaro <luciano.montanaro () consulenti ! fastweb ! it>
Date:       2003-03-07 13:21:31
[Download RAW message or body]

Hello,
currently, the onblur event is non functional (It is treated as a noop)
This patch enables it, and it does not seem to have any bad side effect.
We have been using a similar patch in a custom made konq-embed we have been 
using for some month now. Let me know if it has issues we are unaware of.
The patch is relative to the KDE_3_1_BRANCH version of html_elementimpl.cpp,
but should apply to HEAD as well.
Let me know what you think of this,
Luciano
-- 
Luciano Montanaro// My public GPG key can be  /"\ ASCII RIBBON
               \X/ found at wwwkeys.pgp.net   \ /   CAMPAIGN
                                               X  AGAINST HTML 
                                              / \     MAIL

["onblur.patch" (text/x-diff)]

--- /home/lmonta/kdesrc/kdelibs-31/khtml/html/html_elementimpl.cpp	2003-01-20 10:11:48.000000000 +0100
+++ html_elementimpl.cpp	2003-03-07 12:26:53.000000000 +0100
@@ -136,6 +136,10 @@
         setHTMLEventListener(EventImpl::DOMFOCUSIN_EVENT,
 	    getDocument()->createHTMLEventListener(attr->value().string()));
         break;
+    case ATTR_ONBLUR:
+        setHTMLEventListener(EventImpl::DOMFOCUSOUT_EVENT,
+	    getDocument()->createHTMLEventListener(attr->value().string()));
+        break;
     case ATTR_ONKEYDOWN:
         setHTMLEventListener(EventImpl::KHTML_KEYDOWN_EVENT,
 	    getDocument()->createHTMLEventListener(attr->value().string()));


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

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