Revision: 4794
http://sourceforge.net/p/vexi/code/4794
Author: mkpg2
Date: 2015-05-10 08:12:50 +0000 (Sun, 10 May 2015)
Log Message:
-----------
Fix. Property 'value' needs to be triggered when pasting to a textfield.
Modified Paths:
--------------
branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/text/edit.t
Added Paths:
-----------
branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/passwordfield.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-05-09 09:40:24 UTC (rev 4793)
+++ branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/text/edit.t
2015-05-10 08:12:50 UTC (rev 4794)
@@ -1789,7 +1789,7 @@
deleteSelectedText();
cBlock.reflowbox = true;
syncCursorAndOffset(true);
- text = text;
+ value = text;
}
}
@@ -1798,7 +1798,7 @@
copy();
deleteSelectedText();
syncCursorAndOffset(true);
- text = text;
+ value = text;
}
thisbox.paste = function() {
@@ -1807,8 +1807,8 @@
}
var t = vexi.ui.clipboard;
insertText(t);
- syncCursorAndOffset(true);
- text = text;
+ syncCursorAndOffset(true);
+ value = text;
}
// functions for read only theme access to c* variabels
Added:
branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/passwordfield.t
===================================================================
--- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/passwordfield.t
(rev 0)
+++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/passwordfield.t
2015-05-10 08:12:50 UTC (rev 4794)
@@ -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="password" password="true" width="200"/>
+ <ui:Box text="reveal"/>
+ <ui:Box id="reveal"/>
+ </lay:grid>
+
+
+ $password.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.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn