diff --git a/www/form/inner.js b/www/form/inner.js index 68ccdd79b..424427f0c 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -961,7 +961,7 @@ define([ evOnChange.fire(); }, 500); - $text.on('change keypress', function () { + $text.on('change keypress keyup keydown', function () { setTimeout(updateChar); evChange(); }); @@ -970,7 +970,10 @@ define([ return { tag: tag, getValue: function () { return $text.val().slice(0, opts.maxLength); }, - setValue: function (val) { $text.val(val); }, + setValue: function (val) { + $text.val(val); + updateChar(); + }, edit: function (cb, tmp) { var v = Util.clone(opts); return editTextOptions(v, setCursorGetter, cb, tmp);