diff options
| author | Alon Levy <alon@pobox.com> | 2014-08-18 21:25:20 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-08-18 21:27:01 +0300 |
| commit | f8741870a1dcd066a22545635faac274413b05bd (patch) | |
| tree | 0a98ce9ec4d72d107b4723308884bd9cfb0bce16 /scripts/rhizicore.js | |
| parent | 59370f16a20cc56aaa61ca8a9a2aa62d418af22b (diff) | |
recording: record keystrokes. no strokes recorded for link renames
Diffstat (limited to 'scripts/rhizicore.js')
| -rw-r--r-- | scripts/rhizicore.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index f4e4f3c0..d0ba46dc 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -953,6 +953,9 @@ function editNode(d, i) { $('#editname').val(oldname); $('#editform').keypress(function(e) { + if (graph.history !== undefined) { + graph.history.record_keystrokes(KEYSTROKE_WHERE_EDIT_NODE, [e.which]); + } if (e.which == 13) { $('.editinfo').css('top', -100); $('.editinfo').css('left', 0); |
