From 422e87b24b866eaa420258d97d4ccdc089019f88 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Thu, 24 Oct 2013 16:04:10 -0700 Subject: [PATCH] masked input clipboard hack, part 2 --- httemplate/elements/tr-input-mask.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/httemplate/elements/tr-input-mask.html b/httemplate/elements/tr-input-mask.html index 8a494c8de..922f22f4b 100644 --- a/httemplate/elements/tr-input-mask.html +++ b/httemplate/elements/tr-input-mask.html @@ -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; } -- 2.11.0