Revision: 4411
          http://vexi.svn.sourceforge.net/vexi/?rev=4411&view=rev
Author:   clrg
Date:     2012-07-12 10:32:05 +0000 (Thu, 12 Jul 2012)
Log Message:
-----------
Update text property whenever text changes

Modified Paths:
--------------
    trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/text/edit.t
    trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/textarea.t

Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/text/edit.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/text/edit.t       
2012-07-11 06:05:13 UTC (rev 4410)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/text/edit.t       
2012-07-12 10:32:05 UTC (rev 4411)
@@ -1774,6 +1774,7 @@
                 deleteSelectedText();
                 cBlock.reflowbox = true;
                 syncCursorAndOffset(true);
+                text = text;
             }
         }
         
@@ -1782,6 +1783,7 @@
             copy();
             deleteSelectedText();
             syncCursorAndOffset(true);
+            text = text;
         }
         
         thisbox.paste = function() {
@@ -1791,6 +1793,7 @@
             var t = vexi.ui.clipboard;
             insertText(t);
             syncCursorAndOffset(true);
+            text = text;
         }
         
         // functions for read only theme access to c* variabels

Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/textarea.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/textarea.t 
2012-07-11 06:05:13 UTC (rev 4410)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/textarea.t 
2012-07-12 10:32:05 UTC (rev 4411)
@@ -29,7 +29,12 @@
     static.enableWrite = function(v) { cascade = v; trapee.v_edit.enabled = 
trapee.enabled; }
     
     /** passon keypress to editbox */
-    static.keypressWrite = function(v) { cascade = v; trapee.v_edit.KeyPressed 
= v; }
+    static.keypressWrite = function(v) {
+        cascade = v;
+        trapee.v_edit.KeyPressed = v;
+        if (v.indexOf("C-"!=0))
+            trapee.text = trapee.text;
+    }
     
     /** set up editbox */
     static.v_editWrite = function(v) {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to