Revision: 4803
          http://sourceforge.net/p/vexi/code/4803
Author:   mkpg2
Date:     2015-07-02 04:10:53 +0000 (Thu, 02 Jul 2015)
Log Message:
-----------
Fix. Field value not put to when doing context menu paste/cut operations.

Modified Paths:
--------------
    branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/text/edit.t
    
branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/textfield.t

Added Paths:
-----------
    branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/copypaste.t

Modified: branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/text/edit.t
===================================================================
--- branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/text/edit.t      
2015-06-28 20:16:13 UTC (rev 4802)
+++ branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/text/edit.t      
2015-07-02 04:10:53 UTC (rev 4803)
@@ -1789,7 +1789,9 @@
                 deleteSelectedText();
                 cBlock.reflowbox = true;
                 syncCursorAndOffset(true);
-                value = text;
+                if(v_field){ // this check may not be necessary
+                       v_field.text = text;
+               } 
             }
         }
         
@@ -1798,7 +1800,9 @@
             copy();
             deleteSelectedText();
             syncCursorAndOffset(true);
-            value = text;
+            if(v_field){ // this check may not be necessary
+               v_field.text = text;
+            }           
         }
         
         thisbox.paste = function() {
@@ -1807,8 +1811,10 @@
             }
             var t = vexi.ui.clipboard;
             insertText(t);
-            syncCursorAndOffset(true);           
-            value = text;
+            syncCursorAndOffset(true);
+            if(v_field){ // this check may not be necessary
+               v_field.text = text;
+            }           
         }
         
         // functions for read only theme access to c* variabels

Modified: 
branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/textfield.t
===================================================================
--- 
branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/textfield.t   
    2015-06-28 20:16:13 UTC (rev 4802)
+++ 
branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/textfield.t   
    2015-07-02 04:10:53 UTC (rev 4803)
@@ -147,7 +147,7 @@
             edit.text --= static.innerTextWrite;
             edit.paste0 = edit.paste;
             // HACK edit does not contain value, when in password mode the 
value effectively
-            // captured in key pressed trap so we emulate through key 
pressess, 
+            // captured in key pressed trap so we emulate through key 
pressess. 
             edit.paste = function(v){
                if(edit.select){
                        trapee.KeyPressed = "delete";

Added: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/copypaste.t
===================================================================
--- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/copypaste.t      
                        (rev 0)
+++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/copypaste.t      
2015-07-02 04:10:53 UTC (rev 4803)
@@ -0,0 +1,25 @@
+<!-- public domain -->
+
+<vexi xmlns:ui="vexi://ui" 
+      xmlns:w="vexi.widget"
+      xmlns:lay="vexi.layout">
+      
+    <w:surface />
+    <ui:box orient="vertical">
+        <lay:grid cols="2">
+            <ui:Box text="password"/>
+            <w:textfield id="field" width="200"/>                    
+            <ui:Box text="reveal"/>
+            <ui:Box id="reveal"/>            
+        </lay:grid>
+        
+        
+        $field.value ++= function(v){
+               cascade = v;
+               $reveal.text = v;
+        };
+        
+        vexi.ui.frame = thisbox;
+        
+    </ui:box>
+</vexi>

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


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to