To toggle node with both “mouseclick” and “space” I just wrote :
.bind("select_node.jstree", function (event, data) {
$("#tree").jstree("toggle_node", data.rslt.obj);
})
but what if I just need to toggle only on “space” hotkey and not on “mouseclick”.
You can use hotkyes plugin http://jsfiddle.net/radek/G789k/31/
added hotkeys definition
I removed your bind