masked input clipboard hack, part 2
authorMark Wells <mark@freeside.biz>
Thu, 24 Oct 2013 23:04:16 +0000 (16:04 -0700)
committerMark Wells <mark@freeside.biz>
Thu, 24 Oct 2013 23:04:16 +0000 (16:04 -0700)
httemplate/elements/tr-input-mask.html

index 8a494c8..922f22f 100644 (file)
@@ -37,7 +37,10 @@ t.onkeydown = function(e) {
 };
 container.onkeyup = function(e) {
   if ( container.previous ) {
-    setTimeout(function() {container.previous.focus();}, 10);
+    setTimeout(function() {
+      container.previous.value = container.value;
+      container.previous.focus();
+    }, 10);
   }
   return true;
 }