{"action":"opened","issue":{"url":"https://api.github.com/repos/xsanisty/jquery-calx/issues/15","labels_url":"https://api.github.com/repos/xsanisty/jquery-calx/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/xsanisty/jquery-calx/issues/15/comments","events_url":"https://api.github.com/repos/xsanisty/jquery-calx/issues/15/events","html_url":"https://github.com/xsanisty/jquery-calx/issues/15","id":84557916,"number":15,"title":"Sheet is not defined","user":{"login":"vguenichon","id":1157822,"avatar_url":"https://avatars.githubusercontent.com/u/1157822?v=3","gravatar_id":"","url":"https://api.github.com/users/vguenichon","html_url":"https://github.com/vguenichon","followers_url":"https://api.github.com/users/vguenichon/followers","following_url":"https://api.github.com/users/vguenichon/following{/other_user}","gists_url":"https://api.github.com/users/vguenichon/gists{/gist_id}","starred_url":"https://api.github.com/users/vguenichon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vguenichon/subscriptions","organizations_url":"https://api.github.com/users/vguenichon/orgs","repos_url":"https://api.github.com/users/vguenichon/repos","events_url":"https://api.github.com/users/vguenichon/events{/privacy}","received_events_url":"https://api.github.com/users/vguenichon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-03T13:14:59Z","updated_at":"2015-06-03T13:14:59Z","closed_at":null,"body":"Hi,\r\nI try to take advantage of the keyboard to navigate through the fields. But I have a problem. There's an error \"sheet is not defined\".\r\nHere is the code (from my page https://www.fluidtopics.com/roi-2/) :\r\n```javascript\r\njQuery('#roi').on('keydown', 'input', function(e) {\r\n    var self = jQuery(this)\r\n      , form = self.parents('form:eq(0)')\r\n      , focusable\r\n      , next\r\n      ;\r\n    if (e.keyCode == 13) {\r\n        console.log(\"enter pressed\");\r\n        jQuery(\".roiquestion:visible\").toggle(\"slide\", { direction: \"left\" }, 300, function(){\r\n            jQuery(this).next(\".roiquestion\").toggle(\"slide\", { direction: \"right\" }, 300);\r\n        });\r\n        focusable = form.find('input').filter(':visible');\r\n        console.log(focusable);\r\n        next = focusable.eq(focusable.index(this)+1);\r\n        if (next.length) {\r\n            next.focus();\r\n        } else {\r\n            sheet.calculate();\r\n            jQuery(\".roiquestions\").fadeOut(function(){\r\n                jQuery(\".roiresult\").delay(400).fadeIn();\r\n            });\r\n        }\r\n        return false;\r\n    }\r\n});\r\n```\r\nThanks a lot for your help !"}}