{"action":"created","issue":{"url":"https://api.github.com/repos/mervick/emojionearea/issues/62","repository_url":"https://api.github.com/repos/mervick/emojionearea","labels_url":"https://api.github.com/repos/mervick/emojionearea/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/mervick/emojionearea/issues/62/comments","events_url":"https://api.github.com/repos/mervick/emojionearea/issues/62/events","html_url":"https://github.com/mervick/emojionearea/issues/62","id":184008988,"node_id":"MDU6SXNzdWUxODQwMDg5ODg=","number":62,"title":"Can not submit form with event keypress","user":{"login":"vanlong2712","id":21197310,"node_id":"MDQ6VXNlcjIxMTk3MzEw","avatar_url":"https://avatars3.githubusercontent.com/u/21197310?v=4","gravatar_id":"","url":"https://api.github.com/users/vanlong2712","html_url":"https://github.com/vanlong2712","followers_url":"https://api.github.com/users/vanlong2712/followers","following_url":"https://api.github.com/users/vanlong2712/following{/other_user}","gists_url":"https://api.github.com/users/vanlong2712/gists{/gist_id}","starred_url":"https://api.github.com/users/vanlong2712/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanlong2712/subscriptions","organizations_url":"https://api.github.com/users/vanlong2712/orgs","repos_url":"https://api.github.com/users/vanlong2712/repos","events_url":"https://api.github.com/users/vanlong2712/events{/privacy}","received_events_url":"https://api.github.com/users/vanlong2712/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-10-19T16:17:58Z","updated_at":"2018-07-10T05:17:51Z","closed_at":"2017-10-04T00:36:38Z","author_association":"NONE","body":"I cant submit a form when pressing enter in textarea. It only works when I click to somewhere, then click to the textarea and press enter.\nMy form\n\n```\n<form id=\"add-msg-form\">\n        <div class=\"panel-footer\">\n            <div class=\"input-group\" style=\"display: -webkit-box\" id=\"txtbox\">\n                <textarea id=\"txtMessage\" placeholder=\"Vui lòng nhập nội dung tin nhắn\" ></textarea>\n                <span class=\"input-group-btn\">\n                    <button class=\"btn btn-info\" id=\"btnSend\" type=\"submit\">Send</button>\n                </span>\n           </div>\n    </div>\n</form>\n```\n\n```\n$(document).ready(function() {\n    $(\"#txtMessage\").emojioneArea({\n        events: {\n            keypress: function (editor, event) {\n                if(event.which == 13){\n                    console.log('event:keypress'); //work\n                        $('#add-msg-form').submit(); //not work\n                                        $('#txtMessage').val(''); //not work\n                                }\n            },\n        }\n    });\n});\n```\n"},"comment":{"url":"https://api.github.com/repos/mervick/emojionearea/issues/comments/403703231","html_url":"https://github.com/mervick/emojionearea/issues/62#issuecomment-403703231","issue_url":"https://api.github.com/repos/mervick/emojionearea/issues/62","id":403703231,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzcwMzIzMQ==","user":{"login":"mervick","id":2429298,"node_id":"MDQ6VXNlcjI0MjkyOTg=","avatar_url":"https://avatars1.githubusercontent.com/u/2429298?v=4","gravatar_id":"","url":"https://api.github.com/users/mervick","html_url":"https://github.com/mervick","followers_url":"https://api.github.com/users/mervick/followers","following_url":"https://api.github.com/users/mervick/following{/other_user}","gists_url":"https://api.github.com/users/mervick/gists{/gist_id}","starred_url":"https://api.github.com/users/mervick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mervick/subscriptions","organizations_url":"https://api.github.com/users/mervick/orgs","repos_url":"https://api.github.com/users/mervick/repos","events_url":"https://api.github.com/users/mervick/events{/privacy}","received_events_url":"https://api.github.com/users/mervick/received_events","type":"User","site_admin":false},"created_at":"2018-07-10T05:17:51Z","updated_at":"2018-07-10T05:17:51Z","author_association":"OWNER","body":"@Fabiombrs \r\nJust replace `textarea` with `input`,\r\nhttps://jsfiddle.net/1v03Lqnu/2341/"}}
{"actor":{"display_login":"mervick"}}