{"action":"created","issue":{"url":"https://api.github.com/repos/gefangshuai/ANodeBlog/issues/7","repository_url":"https://api.github.com/repos/gefangshuai/ANodeBlog","labels_url":"https://api.github.com/repos/gefangshuai/ANodeBlog/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/gefangshuai/ANodeBlog/issues/7/comments","events_url":"https://api.github.com/repos/gefangshuai/ANodeBlog/issues/7/events","html_url":"https://github.com/gefangshuai/ANodeBlog/issues/7","id":232501572,"number":7,"title":"22222","user":{"login":"gefangshuai","id":3143306,"avatar_url":"https://avatars1.githubusercontent.com/u/3143306?v=3","gravatar_id":"","url":"https://api.github.com/users/gefangshuai","html_url":"https://github.com/gefangshuai","followers_url":"https://api.github.com/users/gefangshuai/followers","following_url":"https://api.github.com/users/gefangshuai/following{/other_user}","gists_url":"https://api.github.com/users/gefangshuai/gists{/gist_id}","starred_url":"https://api.github.com/users/gefangshuai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gefangshuai/subscriptions","organizations_url":"https://api.github.com/users/gefangshuai/orgs","repos_url":"https://api.github.com/users/gefangshuai/repos","events_url":"https://api.github.com/users/gefangshuai/events{/privacy}","received_events_url":"https://api.github.com/users/gefangshuai/received_events","type":"User","site_admin":false},"labels":[{"id":311164833,"url":"https://api.github.com/repos/gefangshuai/ANodeBlog/labels/bug","name":"bug","color":"fc2929","default":true},{"id":311164834,"url":"https://api.github.com/repos/gefangshuai/ANodeBlog/labels/duplicate","name":"duplicate","color":"cccccc","default":true},{"id":311164836,"url":"https://api.github.com/repos/gefangshuai/ANodeBlog/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-31T09:06:24Z","updated_at":"2017-06-09T08:05:53Z","closed_at":null,"body":"#5 \r\n\r\n#6 \r\n#4 "},"comment":{"url":"https://api.github.com/repos/gefangshuai/ANodeBlog/issues/comments/307324173","html_url":"https://github.com/gefangshuai/ANodeBlog/issues/7#issuecomment-307324173","issue_url":"https://api.github.com/repos/gefangshuai/ANodeBlog/issues/7","id":307324173,"user":{"login":"gefangshuai","id":3143306,"avatar_url":"https://avatars1.githubusercontent.com/u/3143306?v=3","gravatar_id":"","url":"https://api.github.com/users/gefangshuai","html_url":"https://github.com/gefangshuai","followers_url":"https://api.github.com/users/gefangshuai/followers","following_url":"https://api.github.com/users/gefangshuai/following{/other_user}","gists_url":"https://api.github.com/users/gefangshuai/gists{/gist_id}","starred_url":"https://api.github.com/users/gefangshuai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gefangshuai/subscriptions","organizations_url":"https://api.github.com/users/gefangshuai/orgs","repos_url":"https://api.github.com/users/gefangshuai/repos","events_url":"https://api.github.com/users/gefangshuai/events{/privacy}","received_events_url":"https://api.github.com/users/gefangshuai/received_events","type":"User","site_admin":false},"created_at":"2017-06-09T08:05:53Z","updated_at":"2017-06-09T08:05:53Z","body":"Thank you for responding so quickly!\r\nI figured out a way around it. Seems to be a suitable solution.\r\n\r\n# Add event handler\r\nv-on:keydown=\"handleCmdEnter($event)\"\r\n# Method to handle key combination\r\nhandleCmdEnter: function (e) {\r\n    if ((e.metaKey || e.ctrlKey) && e.keyCode == 13) {\r\n        e.target.form.submit();\r\n    }\r\n}\r\nThe event handlers for the form submission didn't work when calling submit() directly, so I called the click event on the submit button instead.\r\n\r\n# Modified method to trigger click event on submit button\r\n# Event handlers for form get trigger this way\r\nhandleCmdEnter: function (e) {\r\n    if ((e.metaKey || e.ctrlKey) && e.keyCode == 13) {\r\n        var button = $(e.target.form).find('button[type=\"submit\"]')[0];\r\n\r\n        $(e.target).trigger('blur');\r\n        $(button).trigger('click');\r\n    }\r\n}"}}
{"actor":{"display_login":"gefangshuai"}}