{"action":"created","comment":{"url":"https://api.github.com/repos/SunriseDigital/sdxweb/pulls/comments/115669149","pull_request_review_id":37226326,"id":115669149,"diff_hunk":"@@ -0,0 +1,77 @@\n+import React, { Component } from 'react'\r\n+\r\n+export default class TextEditor extends Component {\r\n+  constructor(props){\r\n+    super(props);\r\n+    this.state = {\r\n+      keyCode: {},\r\n+      keepInputIme: false\r\n+    }\r\n+  }\r\n+\r\n+  onKeyDown(e){\r\n+    let keepInputIme = false;\r\n+    // keyDown時のkeyCode\r\n+    // Firefox[0],IE,Chrome,Safari[229]の時はIME入力中\r\n+    if (e.keyCode == 0 || e.keyCode == 229) {\r\n+      keepInputIme = true;\r\n+    }\r\n+    this.setState({\r\n+      keyCode: {\r\n+        down: (this.state.keyCode.down) ? this.state.keyCode.down.concat(e.keyCode) : [e.keyCode]\r\n+      },\r\n+      keepInputIme: keepInputIme\r\n+    });\r\n+  }\r\n+\r\n+  onKeyUp(e){\r\n+    if (this.state.keyCode.down.includes(e.keyCode) && e.keyCode == 13) {\r\n+      let data = this.state.keyCode;\r","path":"_private/js/modules/react/components/TextEditor.js","position":null,"original_position":29,"commit_id":"00c33500a2e27769c60ee7a756ee8227a219c19b","original_commit_id":"2fe42691085772d679d1377994887bcf29270a9e","user":{"login":"tkabeee","id":647050,"avatar_url":"https://avatars1.githubusercontent.com/u/647050?v=3","gravatar_id":"","url":"https://api.github.com/users/tkabeee","html_url":"https://github.com/tkabeee","followers_url":"https://api.github.com/users/tkabeee/followers","following_url":"https://api.github.com/users/tkabeee/following{/other_user}","gists_url":"https://api.github.com/users/tkabeee/gists{/gist_id}","starred_url":"https://api.github.com/users/tkabeee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkabeee/subscriptions","organizations_url":"https://api.github.com/users/tkabeee/orgs","repos_url":"https://api.github.com/users/tkabeee/repos","events_url":"https://api.github.com/users/tkabeee/events{/privacy}","received_events_url":"https://api.github.com/users/tkabeee/received_events","type":"User","site_admin":false},"body":"eventを返すように対応しました","created_at":"2017-05-10T07:17:59Z","updated_at":"2017-05-10T07:17:59Z","html_url":"https://github.com/SunriseDigital/sdxweb/pull/5#discussion_r115669149","pull_request_url":"https://api.github.com/repos/SunriseDigital/sdxweb/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/SunriseDigital/sdxweb/pulls/comments/115669149"},"html":{"href":"https://github.com/SunriseDigital/sdxweb/pull/5#discussion_r115669149"},"pull_request":{"href":"https://api.github.com/repos/SunriseDigital/sdxweb/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/SunriseDigital/sdxweb/pulls/5","id":117868792,"html_url":"https://github.com/SunriseDigital/sdxweb/pull/5","diff_url":"https://github.com/SunriseDigital/sdxweb/pull/5.diff","patch_url":"https://github.com/SunriseDigital/sdxweb/pull/5.patch","issue_url":"https://api.github.com/repos/SunriseDigital/sdxweb/issues/5","number":5,"state":"open","locked":false,"title":"テキスト入力用Component","user":{"login":"tkabeee","id":647050,"avatar_url":"https://avatars1.githubusercontent.com/u/647050?v=3","gravatar_id":"","url":"https://api.github.com/users/tkabeee","html_url":"https://github.com/tkabeee","followers_url":"https://api.github.com/users/tkabeee/followers","following_url":"https://api.github.com/users/tkabeee/following{/other_user}","gists_url":"https://api.github.com/users/tkabeee/gists{/gist_id}","starred_url":"https://api.github.com/users/tkabeee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkabeee/subscriptions","organizations_url":"https://api.github.com/users/tkabeee/orgs","repos_url":"https://api.github.com/users/tkabeee/repos","events_url":"https://api.github.com/users/tkabeee/events{/privacy}","received_events_url":"https://api.github.com/users/tkabeee/received_events","type":"User","site_admin":false},"body":"日本語IMEのエンターキーイベントを上手く扱うテキスト入力のコンポーネント。\r\n\r\n## Pivotal\r\n\r\nhttps://www.pivotaltracker.com/story/show/135208459\r\n\r\n## 親PR\r\n\r\nhttps://github.com/SunriseDigital/nukinavi_unified/pull/250","created_at":"2017-04-27T06:36:51Z","updated_at":"2017-05-10T07:17:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5909de66b6c826627475d7e53cc4ba4a83c6d21","assignee":{"login":"tkabeee","id":647050,"avatar_url":"https://avatars1.githubusercontent.com/u/647050?v=3","gravatar_id":"","url":"https://api.github.com/users/tkabeee","html_url":"https://github.com/tkabeee","followers_url":"https://api.github.com/users/tkabeee/followers","following_url":"https://api.github.com/users/tkabeee/following{/other_user}","gists_url":"https://api.github.com/users/tkabeee/gists{/gist_id}","starred_url":"https://api.github.com/users/tkabeee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkabeee/subscriptions","organizations_url":"https://api.github.com/users/tkabeee/orgs","repos_url":"https://api.github.com/users/tkabeee/repos","events_url":"https://api.github.com/users/tkabeee/events{/privacy}","received_events_url":"https://api.github.com/users/tkabeee/received_events","type":"User","site_admin":false},"assignees":[{"login":"tkabeee","id":647050,"avatar_url":"https://avatars1.githubusercontent.com/u/647050?v=3","gravatar_id":"","url":"https://api.github.com/users/tkabeee","html_url":"https://github.com/tkabeee","followers_url":"https://api.github.com/users/tkabeee/followers","following_url":"https://api.github.com/users/tkabeee/following{/other_user}","gists_url":"https://api.github.com/users/tkabeee/gists{/gist_id}","starred_url":"https://api.github.com/users/tkabeee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkabeee/subscriptions","organizations_url":"https://api.github.com/users/tkabeee/orgs","repos_url":"https://api.github.com/users/tkabeee/repos","events_url":"https://api.github.com/users/tkabeee/events{/privacy}","received_events_url":"https://api.github.com/users/tkabeee/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/SunriseDigital/sdxweb/pulls/5/commits","review_comments_url":"https://api.github.com/repos/SunriseDigital/sdxweb/pulls/5/comments","review_comment_url":"https://api.github.com/repos/SunriseDigital/sdxweb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SunriseDigital/sdxweb/issues/5/comments","statuses_url":"https://api.github.com/repos/SunriseDigital/sdxweb/statuses/00c33500a2e27769c60ee7a756ee8227a219c19b","head":{"label":"SunriseDigital:feat/improveGalsWork/stateInService","ref":"feat/improveGalsWork/stateInService","sha":"00c33500a2e27769c60ee7a756ee8227a219c19b","user":{"login":"SunriseDigital","id":1920622,"avatar_url":"https://avatars1.githubusercontent.com/u/1920622?v=3","gravatar_id":"","url":"https://api.github.com/users/SunriseDigital","html_url":"https://github.com/SunriseDigital","followers_url":"https://api.github.com/users/SunriseDigital/followers","following_url":"https://api.github.com/users/SunriseDigital/following{/other_user}","gists_url":"https://api.github.com/users/SunriseDigital/gists{/gist_id}","starred_url":"https://api.github.com/users/SunriseDigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SunriseDigital/subscriptions","organizations_url":"https://api.github.com/users/SunriseDigital/orgs","repos_url":"https://api.github.com/users/SunriseDigital/repos","events_url":"https://api.github.com/users/SunriseDigital/events{/privacy}","received_events_url":"https://api.github.com/users/SunriseDigital/received_events","type":"Organization","site_admin":false},"repo":{"id":46337582,"name":"sdxweb","full_name":"SunriseDigital/sdxweb","owner":{"login":"SunriseDigital","id":1920622,"avatar_url":"https://avatars1.githubusercontent.com/u/1920622?v=3","gravatar_id":"","url":"https://api.github.com/users/SunriseDigital","html_url":"https://github.com/SunriseDigital","followers_url":"https://api.github.com/users/SunriseDigital/followers","following_url":"https://api.github.com/users/SunriseDigital/following{/other_user}","gists_url":"https://api.github.com/users/SunriseDigital/gists{/gist_id}","starred_url":"https://api.github.com/users/SunriseDigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SunriseDigital/subscriptions","organizations_url":"https://api.github.com/users/SunriseDigital/orgs","repos_url":"https://api.github.com/users/SunriseDigital/repos","events_url":"https://api.github.com/users/SunriseDigital/events{/privacy}","received_events_url":"https://api.github.com/users/SunriseDigital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SunriseDigital/sdxweb","description":null,"fork":false,"url":"https://api.github.com/repos/SunriseDigital/sdxweb","forks_url":"https://api.github.com/repos/SunriseDigital/sdxweb/forks","keys_url":"https://api.github.com/repos/SunriseDigital/sdxweb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SunriseDigital/sdxweb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SunriseDigital/sdxweb/teams","hooks_url":"https://api.github.com/repos/SunriseDigital/sdxweb/hooks","issue_events_url":"https://api.github.com/repos/SunriseDigital/sdxweb/issues/events{/number}","events_url":"https://api.github.com/repos/SunriseDigital/sdxweb/events","assignees_url":"https://api.github.com/repos/SunriseDigital/sdxweb/assignees{/user}","branches_url":"https://api.github.com/repos/SunriseDigital/sdxweb/branches{/branch}","tags_url":"https://api.github.com/repos/SunriseDigital/sdxweb/tags","blobs_url":"https://api.github.com/repos/SunriseDigital/sdxweb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SunriseDigital/sdxweb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SunriseDigital/sdxweb/git/refs{/sha}","trees_url":"https://api.github.com/repos/SunriseDigital/sdxweb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SunriseDigital/sdxweb/statuses/{sha}","languages_url":"https://api.github.com/repos/SunriseDigital/sdxweb/languages","stargazers_url":"https://api.github.com/repos/SunriseDigital/sdxweb/stargazers","contributors_url":"https://api.github.com/repos/SunriseDigital/sdxweb/contributors","subscribers_url":"https://api.github.com/repos/SunriseDigital/sdxweb/subscribers","subscription_url":"https://api.github.com/repos/SunriseDigital/sdxweb/subscription","commits_url":"https://api.github.com/repos/SunriseDigital/sdxweb/commits{/sha}","git_commits_url":"https://api.github.com/repos/SunriseDigital/sdxweb/git/commits{/sha}","comments_url":"https://api.github.com/repos/SunriseDigital/sdxweb/comments{/number}","issue_comment_url":"https://api.github.com/repos/SunriseDigital/sdxweb/issues/comments{/number}","contents_url":"https://api.github.com/repos/SunriseDigital/sdxweb/contents/{+path}","compare_url":"https://api.github.com/repos/SunriseDigital/sdxweb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SunriseDigital/sdxweb/merges","archive_url":"https://api.github.com/repos/SunriseDigital/sdxweb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SunriseDigital/sdxweb/downloads","issues_url":"https://api.github.com/repos/SunriseDigital/sdxweb/issues{/number}","pulls_url":"https://api.github.com/repos/SunriseDigital/sdxweb/pulls{/number}","milestones_url":"https://api.github.com/repos/SunriseDigital/sdxweb/milestones{/number}","notifications_url":"https://api.github.com/repos/SunriseDigital/sdxweb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SunriseDigital/sdxweb/labels{/name}","releases_url":"https://api.github.com/repos/SunriseDigital/sdxweb/releases{/id}","deployments_url":"https://api.github.com/repos/SunriseDigital/sdxweb/deployments","created_at":"2015-11-17T09:43:52Z","updated_at":"2016-12-05T07:40:47Z","pushed_at":"2017-05-10T07:17:26Z","git_url":"git://github.com/SunriseDigital/sdxweb.git","ssh_url":"git@github.com:SunriseDigital/sdxweb.git","clone_url":"https://github.com/SunriseDigital/sdxweb.git","svn_url":"https://github.com/SunriseDigital/sdxweb","homepage":null,"size":1700,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"SunriseDigital:master","ref":"master","sha":"9568388777a51888b52d3d847b19bba8a6d4c506","user":{"login":"SunriseDigital","id":1920622,"avatar_url":"https://avatars1.githubusercontent.com/u/1920622?v=3","gravatar_id":"","url":"https://api.github.com/users/SunriseDigital","html_url":"https://github.com/SunriseDigital","followers_url":"https://api.github.com/users/SunriseDigital/followers","following_url":"https://api.github.com/users/SunriseDigital/following{/other_user}","gists_url":"https://api.github.com/users/SunriseDigital/gists{/gist_id}","starred_url":"https://api.github.com/users/SunriseDigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SunriseDigital/subscriptions","organizations_url":"https://api.github.com/users/SunriseDigital/orgs","repos_url":"https://api.github.com/users/SunriseDigital/repos","events_url":"https://api.github.com/users/SunriseDigital/events{/privacy}","received_events_url":"https://api.github.com/users/SunriseDigital/received_events","type":"Organization","site_admin":false},"repo":{"id":46337582,"name":"sdxweb","full_name":"SunriseDigital/sdxweb","owner":{"login":"SunriseDigital","id":1920622,"avatar_url":"https://avatars1.githubusercontent.com/u/1920622?v=3","gravatar_id":"","url":"https://api.github.com/users/SunriseDigital","html_url":"https://github.com/SunriseDigital","followers_url":"https://api.github.com/users/SunriseDigital/followers","following_url":"https://api.github.com/users/SunriseDigital/following{/other_user}","gists_url":"https://api.github.com/users/SunriseDigital/gists{/gist_id}","starred_url":"https://api.github.com/users/SunriseDigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SunriseDigital/subscriptions","organizations_url":"https://api.github.com/users/SunriseDigital/orgs","repos_url":"https://api.github.com/users/SunriseDigital/repos","events_url":"https://api.github.com/users/SunriseDigital/events{/privacy}","received_events_url":"https://api.github.com/users/SunriseDigital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SunriseDigital/sdxweb","description":null,"fork":false,"url":"https://api.github.com/repos/SunriseDigital/sdxweb","forks_url":"https://api.github.com/repos/SunriseDigital/sdxweb/forks","keys_url":"https://api.github.com/repos/SunriseDigital/sdxweb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SunriseDigital/sdxweb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SunriseDigital/sdxweb/teams","hooks_url":"https://api.github.com/repos/SunriseDigital/sdxweb/hooks","issue_events_url":"https://api.github.com/repos/SunriseDigital/sdxweb/issues/events{/number}","events_url":"https://api.github.com/repos/SunriseDigital/sdxweb/events","assignees_url":"https://api.github.com/repos/SunriseDigital/sdxweb/assignees{/user}","branches_url":"https://api.github.com/repos/SunriseDigital/sdxweb/branches{/branch}","tags_url":"https://api.github.com/repos/SunriseDigital/sdxweb/tags","blobs_url":"https://api.github.com/repos/SunriseDigital/sdxweb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SunriseDigital/sdxweb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SunriseDigital/sdxweb/git/refs{/sha}","trees_url":"https://api.github.com/repos/SunriseDigital/sdxweb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SunriseDigital/sdxweb/statuses/{sha}","languages_url":"https://api.github.com/repos/SunriseDigital/sdxweb/languages","stargazers_url":"https://api.github.com/repos/SunriseDigital/sdxweb/stargazers","contributors_url":"https://api.github.com/repos/SunriseDigital/sdxweb/contributors","subscribers_url":"https://api.github.com/repos/SunriseDigital/sdxweb/subscribers","subscription_url":"https://api.github.com/repos/SunriseDigital/sdxweb/subscription","commits_url":"https://api.github.com/repos/SunriseDigital/sdxweb/commits{/sha}","git_commits_url":"https://api.github.com/repos/SunriseDigital/sdxweb/git/commits{/sha}","comments_url":"https://api.github.com/repos/SunriseDigital/sdxweb/comments{/number}","issue_comment_url":"https://api.github.com/repos/SunriseDigital/sdxweb/issues/comments{/number}","contents_url":"https://api.github.com/repos/SunriseDigital/sdxweb/contents/{+path}","compare_url":"https://api.github.com/repos/SunriseDigital/sdxweb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SunriseDigital/sdxweb/merges","archive_url":"https://api.github.com/repos/SunriseDigital/sdxweb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SunriseDigital/sdxweb/downloads","issues_url":"https://api.github.com/repos/SunriseDigital/sdxweb/issues{/number}","pulls_url":"https://api.github.com/repos/SunriseDigital/sdxweb/pulls{/number}","milestones_url":"https://api.github.com/repos/SunriseDigital/sdxweb/milestones{/number}","notifications_url":"https://api.github.com/repos/SunriseDigital/sdxweb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SunriseDigital/sdxweb/labels{/name}","releases_url":"https://api.github.com/repos/SunriseDigital/sdxweb/releases{/id}","deployments_url":"https://api.github.com/repos/SunriseDigital/sdxweb/deployments","created_at":"2015-11-17T09:43:52Z","updated_at":"2016-12-05T07:40:47Z","pushed_at":"2017-05-10T07:17:26Z","git_url":"git://github.com/SunriseDigital/sdxweb.git","ssh_url":"git@github.com:SunriseDigital/sdxweb.git","clone_url":"https://github.com/SunriseDigital/sdxweb.git","svn_url":"https://github.com/SunriseDigital/sdxweb","homepage":null,"size":1700,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SunriseDigital/sdxweb/pulls/5"},"html":{"href":"https://github.com/SunriseDigital/sdxweb/pull/5"},"issue":{"href":"https://api.github.com/repos/SunriseDigital/sdxweb/issues/5"},"comments":{"href":"https://api.github.com/repos/SunriseDigital/sdxweb/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/SunriseDigital/sdxweb/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/SunriseDigital/sdxweb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SunriseDigital/sdxweb/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/SunriseDigital/sdxweb/statuses/00c33500a2e27769c60ee7a756ee8227a219c19b"}}}}
{"actor":{"display_login":"tkabeee"}}