{"action":"created","issue":{"url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/57","labels_url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/57/comments","events_url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/57/events","html_url":"https://github.com/running-coder/jquery-typeahead/issues/57","id":96559015,"number":57,"title":"ESC does not propagate even after closing suggestions","user":{"login":"ThiefMaster","id":179599,"avatar_url":"https://avatars.githubusercontent.com/u/179599?v=3","gravatar_id":"","url":"https://api.github.com/users/ThiefMaster","html_url":"https://github.com/ThiefMaster","followers_url":"https://api.github.com/users/ThiefMaster/followers","following_url":"https://api.github.com/users/ThiefMaster/following{/other_user}","gists_url":"https://api.github.com/users/ThiefMaster/gists{/gist_id}","starred_url":"https://api.github.com/users/ThiefMaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThiefMaster/subscriptions","organizations_url":"https://api.github.com/users/ThiefMaster/orgs","repos_url":"https://api.github.com/users/ThiefMaster/repos","events_url":"https://api.github.com/users/ThiefMaster/events{/privacy}","received_events_url":"https://api.github.com/users/ThiefMaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-22T12:37:54Z","updated_at":"2015-07-22T14:53:50Z","closed_at":null,"body":"Initially an ESC keypress in the text field propagates up the dom tree. When suggestions are displayed, it closes the suggestions instead. Another ESC keypress afterwards doesn't propagate up anymore.\r\n\r\nI think ESC should propagate normally while no suggestions are shown. For example, we're showing a form in a dialog that can be closed with ESC, but that doesn't work while focusing the typeahead-enhanced field once suggestions had been shown."},"comment":{"url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/comments/123748460","html_url":"https://github.com/running-coder/jquery-typeahead/issues/57#issuecomment-123748460","issue_url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/57","id":123748460,"user":{"login":"running-coder","id":7377382,"avatar_url":"https://avatars.githubusercontent.com/u/7377382?v=3","gravatar_id":"","url":"https://api.github.com/users/running-coder","html_url":"https://github.com/running-coder","followers_url":"https://api.github.com/users/running-coder/followers","following_url":"https://api.github.com/users/running-coder/following{/other_user}","gists_url":"https://api.github.com/users/running-coder/gists{/gist_id}","starred_url":"https://api.github.com/users/running-coder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/running-coder/subscriptions","organizations_url":"https://api.github.com/users/running-coder/orgs","repos_url":"https://api.github.com/users/running-coder/repos","events_url":"https://api.github.com/users/running-coder/events{/privacy}","received_events_url":"https://api.github.com/users/running-coder/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T14:53:50Z","updated_at":"2015-07-22T14:53:50Z","body":"Hey ThiefMaster,\r\n\r\nGood call!\r\n\r\nI'm not using .stopPropagation but .preventDefault for the ESC case, \r\nhttps://github.com/running-coder/jquery-typeahead/blob/master/src/jquery.typeahead.js#L859\r\n\r\nI'll look into .stopImmediatePropagation() my goal is to close the Typeahead result list but indeed I'm blocking for further actions"}}