I was trying to get an alert after focusing a node and pressing a key on keyboard.
please help.I was not able to find relevant information in the documentation.
Add an event handler on body to listen for keyup event. When that happens, call the API call nodes() to retrieve the focused nodes from the NetChart - verify if the node is focused and perform necessary procedure.
Yes, that is one approach. Alternative would be if you want action to be performed in exactly that way:1. set focus node2. press some key.
Here is a quick draft:http://jsfiddle.net/2e4zgcdj/