summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-11-10 18:49:02 +0100
committerThomas Bruederli <thomas@roundcube.net>2013-11-10 18:49:02 +0100
commit7bfc02e122a6f043be5b03bc91ecb4d87e9afc15 (patch)
tree069d110eab52208e98a880baf58cea12cfcb38cc
parent87b513853c818541e0966277288b685c3016a7fc (diff)
Track typing activity in HTML editor
-rw-r--r--program/js/editor.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/program/js/editor.js b/program/js/editor.js
index 020971d6e..df3d41240 100644
--- a/program/js/editor.js
+++ b/program/js/editor.js
@@ -61,6 +61,9 @@ function rcmail_editor_init(config)
if (!active)
rcmail.spellcheck_state();
});
+ ed.onKeyPress.add(function(ed, e) {
+ rcmail.compose_type_activity++;
+ });
}
}