From 7bfc02e122a6f043be5b03bc91ecb4d87e9afc15 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Sun, 10 Nov 2013 18:49:02 +0100 Subject: Track typing activity in HTML editor --- program/js/editor.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'program/js/editor.js') 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++; + }); } } -- cgit v1.2.3