Author: max
Date: 2007-10-12 13:15:12 -0700 (Fri, 12 Oct 2007)
New Revision: 6826

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzInputTextSprite.js
Log:
Change 20071011-maxcarlson-v by [EMAIL PROTECTED] on 2007-10-11 18:18:38 PDT
    in /Users/maxcarlson/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Enable inputtext selection in IE.

New Features:

Bugs Fixed: LPP-4170 - Edittext does not allow mouse to highlight entered text 
in dhtml

Technical Reviewer: promanik
QA Reviewer: jcrowley
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: Manually enable/disable document.onselectstart when an inputtext is 
shown/hidden.
    

Tests: This allows text to be selected in most cases, but there are still 
issues when tabbing between fields - these were there before.  Think of this as 
a first step.



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzInputTextSprite.js
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzInputTextSprite.js  
2007-10-12 18:48:04 UTC (rev 6825)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzInputTextSprite.js  
2007-10-12 20:15:12 UTC (rev 6826)
@@ -119,6 +119,8 @@
         this.__LZinputclickdiv.appendChild(this.__LzInputDiv);
     }
     //Debug.write('show');
+    // turn on selection in IE
+    document.onselectstart = null;
 }
 
 LzInputTextSprite.prototype.__hideIfNotFocused = function(eventname, target) {
@@ -179,6 +181,8 @@
     }
     this.__LZdiv.appendChild(this.__LzInputDiv);
     //Debug.write('hide');
+    // turn off selection in IE
+    document.onselectstart = LzTextSprite.prototype.__cancelhandler;
 }
 
 LzInputTextSprite.prototype.gotBlur = function() {


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to