diff options
| author | Alon Levy <alon@pobox.com> | 2015-03-07 16:56:11 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-03-07 16:56:11 +0200 |
| commit | 40c0be6f4e1c0f596462c990a35cee4bee4ff55a (patch) | |
| tree | 0b602f3df4641fc3a0804816c6ed767c7cfd6cee /src/client/textanalysis.ui.js | |
| parent | fe9c0b3d54b4b2802dab8aa41bcb105d485335f7 (diff) | |
client: use shift-up and shift-down for node type changes
Diffstat (limited to 'src/client/textanalysis.ui.js')
| -rw-r--r-- | src/client/textanalysis.ui.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/textanalysis.ui.js b/src/client/textanalysis.ui.js index 33dafafe..02ba8b0f 100644 --- a/src/client/textanalysis.ui.js +++ b/src/client/textanalysis.ui.js @@ -136,10 +136,9 @@ var main = function () finalize: false, }); }); - input.on_tab.onValue(function (e) { + input.on_type.onValue(function (up) { if (textanalysis.lastnode(rz_core.edit_graph, input.selectionStart())) { - e.preventDefault(); - changeType(e.shiftKey ? "up" : "down"); + changeType(up ? "up" : "down"); ret = false; } }); |
