[Laszlo-checkins] r13814 - openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml

max@openlaszlo.org max at openlaszlo.org
Wed May 6 13:01:14 PDT 2009


Author: max
Date: 2009-05-06 13:01:13 -0700 (Wed, 06 May 2009)
New Revision: 13814

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzMouseKernel.js
Log:
Change 20090505-maxcarlson-t by maxcarlson at Bank on 2009-05-05 16:32:18 PDT
    in /Users/maxcarlson/openlaszlo/trunk-clean
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Blur focused inputtexts when mousing over html iframes

Bugs Fixed: LPP-8086 - DHTML: focused inputtexts hide/show when mousing over/out iframes

Technical Reviewer: andre.bargull at udo.edu
QA Reviewer: ptw

Details: Call deselect on any text fields that were previously focused before turning off global clickability - which would cause them to disappear.

Tests: See updated testcase from LPP-7827 in DHTML.



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzMouseKernel.js
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzMouseKernel.js	2009-05-06 17:59:57 UTC (rev 13813)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzMouseKernel.js	2009-05-06 20:01:13 UTC (rev 13814)
@@ -167,11 +167,18 @@
         }
     }
     ,setGlobalClickable: function (isclickable){
+        //Debug.error('setGlobalClickable', isclickable, LzInputTextSprite.__lastfocus, LzInputTextSprite.prototype.__focusedSprite, LzInputTextSprite.prototype.__lastshown);
         if (! isclickable) {
             // reset any inputtexts that are showing so they don't disappear - see LPP-7190
             if (LzInputTextSprite.prototype.__lastshown) {
                 LzInputTextSprite.prototype.__lastshown.__hide();
             }
+            if (LzInputTextSprite.prototype.__focusedSprite) {
+                LzInputTextSprite.prototype.__focusedSprite.deselect();
+            }
+            if (LzInputTextSprite.__lastfocus) {
+                LzInputTextSprite.__lastfocus.deselect();
+            }
         }
         var el = document.getElementById('lzcanvasclickdiv');
         el.style.display = isclickable ? 'block' : 'none';



More information about the Laszlo-checkins mailing list