summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-input-mask.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-10-24 16:04:10 -0700
committerMark Wells <mark@freeside.biz>2013-10-24 16:04:10 -0700
commit422e87b24b866eaa420258d97d4ccdc089019f88 (patch)
tree9578b0f977ac8cd35f43de3a240563eb95639449 /httemplate/elements/tr-input-mask.html
parenta5b0ddc40f119370fa4abf718931fb6832c34924 (diff)
masked input clipboard hack, part 2
Diffstat (limited to 'httemplate/elements/tr-input-mask.html')
-rw-r--r--httemplate/elements/tr-input-mask.html5
1 files changed, 4 insertions, 1 deletions
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;
}