summaryrefslogtreecommitdiff
path: root/httemplate/elements/input-text.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/elements/input-text.html')
-rw-r--r--httemplate/elements/input-text.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/elements/input-text.html b/httemplate/elements/input-text.html
index fb50a5070..827941501 100644
--- a/httemplate/elements/input-text.html
+++ b/httemplate/elements/input-text.html
@@ -15,7 +15,9 @@ my %opt = @_;
my $value = length($opt{curr_value}) ? $opt{curr_value} : $opt{value};
my $onchange = $opt{'onchange'}
- ? 'onChange="'. $opt{'onchange'}. '(this)"'
+ ? join(' ', map $_.'="'. $opt{'onchange'}. '(this)"',
+ qw( onChange onKeyDown onKeyUp onKeyPress )
+ )
: '';
my $size = $opt{'size'}