From 40c0be6f4e1c0f596462c990a35cee4bee4ff55a Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sat, 7 Mar 2015 16:56:11 +0200 Subject: client: use shift-up and shift-down for node type changes --- src/client/textanalysis.ui.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/client/textanalysis.ui.js') 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; } }); -- cgit v1.3.1