{"action":"created","issue":{"url":"https://api.github.com/repos/almende/vis/issues/1332","labels_url":"https://api.github.com/repos/almende/vis/issues/1332/labels{/name}","comments_url":"https://api.github.com/repos/almende/vis/issues/1332/comments","events_url":"https://api.github.com/repos/almende/vis/issues/1332/events","html_url":"https://github.com/almende/vis/issues/1332","id":108928029,"number":1332,"title":"Request to provide keypress events","user":{"login":"stanleyxu2005","id":5162687,"avatar_url":"https://avatars.githubusercontent.com/u/5162687?v=3","gravatar_id":"","url":"https://api.github.com/users/stanleyxu2005","html_url":"https://github.com/stanleyxu2005","followers_url":"https://api.github.com/users/stanleyxu2005/followers","following_url":"https://api.github.com/users/stanleyxu2005/following{/other_user}","gists_url":"https://api.github.com/users/stanleyxu2005/gists{/gist_id}","starred_url":"https://api.github.com/users/stanleyxu2005/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stanleyxu2005/subscriptions","organizations_url":"https://api.github.com/users/stanleyxu2005/orgs","repos_url":"https://api.github.com/users/stanleyxu2005/repos","events_url":"https://api.github.com/users/stanleyxu2005/events{/privacy}","received_events_url":"https://api.github.com/users/stanleyxu2005/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-29T18:19:11Z","updated_at":"2015-09-29T19:08:42Z","closed_at":null,"body":"I'd like to delete selected node/edge by pressing DEL. I do not found a way to hook keypress event. Is there anyway to handle keystrokes?"},"comment":{"url":"https://api.github.com/repos/almende/vis/issues/comments/144158920","html_url":"https://github.com/almende/vis/issues/1332#issuecomment-144158920","issue_url":"https://api.github.com/repos/almende/vis/issues/1332","id":144158920,"user":{"login":"dragonzone","id":10065158,"avatar_url":"https://avatars.githubusercontent.com/u/10065158?v=3","gravatar_id":"","url":"https://api.github.com/users/dragonzone","html_url":"https://github.com/dragonzone","followers_url":"https://api.github.com/users/dragonzone/followers","following_url":"https://api.github.com/users/dragonzone/following{/other_user}","gists_url":"https://api.github.com/users/dragonzone/gists{/gist_id}","starred_url":"https://api.github.com/users/dragonzone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragonzone/subscriptions","organizations_url":"https://api.github.com/users/dragonzone/orgs","repos_url":"https://api.github.com/users/dragonzone/repos","events_url":"https://api.github.com/users/dragonzone/events{/privacy}","received_events_url":"https://api.github.com/users/dragonzone/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T19:08:42Z","updated_at":"2015-09-29T19:08:42Z","body":"I have this feature in our app. To do this, you can try this:\r\n\r\n```\r\n\t$(document).keyup(function(e){\r\n\t    if (e.keyCode == 46) { // delete button pressed\r\n\t    \tremoveSelectedNodes();\r\n\t    }\r\n\t}) \r\n```"}}