{"action":"created","comment":{"url":"https://api.github.com/repos/namikingsoft/electron-sandbox/pulls/comments/56133573","id":56133573,"diff_hunk":"@@ -24,7 +24,27 @@ app.on('ready', () => {\n   const menu = Menu.buildFromTemplate([\n     {label: \"Setting\", click: () => settingWindow.show()},\n     {label: \"Quit\", click: () => app.quit()},\n-  ]);\n-  tray.setToolTip(app.getName());\n-  tray.setContextMenu(menu);\n-});\n+  ])\n+  tray.setToolTip(app.getName())\n+  tray.setContextMenu(menu)\n+\n+  // menu\n+  Menu.setApplicationMenu(Menu.buildFromTemplate([{\n+    label: \"Application\",\n+    submenu: [\n+      { label: \"About Application\", selector: \"orderFrontStandardAboutPanel:\" },\n+      { type: \"separator\" },\n+      { label: \"Quit\", accelerator: \"Command+Q\", click: () => app.quit() },\n+    ]}, {\n+    label: \"Edit\",\n+    submenu: [\n+      { label: \"Undo\", accelerator: \"CmdOrCtrl+Z\", selector: \"undo:\" },\n+      { label: \"Redo\", accelerator: \"Shift+CmdOrCtrl+Z\", selector: \"redo:\" },\n+      { type: \"separator\" },\n+      { label: \"Cut\", accelerator: \"CmdOrCtrl+X\", selector: \"cut:\" },\n+      { label: \"Copy\", accelerator: \"CmdOrCtrl+C\", selector: \"copy:\" },\n+      { label: \"Paste\", accelerator: \"CmdOrCtrl+V\", selector: \"paste:\" },\n+      { label: \"Select All\", accelerator: \"CmdOrCtrl+A\", selector: \"selectAll:\" },\n+    ]},\n+  ]))","path":"src/app.ts","position":30,"original_position":30,"commit_id":"2adf0bd22c04bd77f53802c3d87c48cfbbd40a16","original_commit_id":"2adf0bd22c04bd77f53802c3d87c48cfbbd40a16","user":{"login":"namikingsoft","id":3187220,"avatar_url":"https://avatars.githubusercontent.com/u/3187220?v=3","gravatar_id":"","url":"https://api.github.com/users/namikingsoft","html_url":"https://github.com/namikingsoft","followers_url":"https://api.github.com/users/namikingsoft/followers","following_url":"https://api.github.com/users/namikingsoft/following{/other_user}","gists_url":"https://api.github.com/users/namikingsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/namikingsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namikingsoft/subscriptions","organizations_url":"https://api.github.com/users/namikingsoft/orgs","repos_url":"https://api.github.com/users/namikingsoft/repos","events_url":"https://api.github.com/users/namikingsoft/events{/privacy}","received_events_url":"https://api.github.com/users/namikingsoft/received_events","type":"User","site_admin":false},"body":"参考サイトをコピペ。\r\n\r\n* Electron で Mac のコピー＆ペーストを実装する  \r\nhttp://hacknote.jp/archives/16729/","created_at":"2016-03-15T09:17:50Z","updated_at":"2016-03-15T09:17:50Z","html_url":"https://github.com/namikingsoft/electron-sandbox/pull/11#discussion_r56133573","pull_request_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/namikingsoft/electron-sandbox/pulls/comments/56133573"},"html":{"href":"https://github.com/namikingsoft/electron-sandbox/pull/11#discussion_r56133573"},"pull_request":{"href":"https://api.github.com/repos/namikingsoft/electron-sandbox/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/namikingsoft/electron-sandbox/pulls/11","id":62848865,"html_url":"https://github.com/namikingsoft/electron-sandbox/pull/11","diff_url":"https://github.com/namikingsoft/electron-sandbox/pull/11.diff","patch_url":"https://github.com/namikingsoft/electron-sandbox/pull/11.patch","issue_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/issues/11","number":11,"state":"open","locked":false,"title":"[WIP] コピー＆ペースト機能の実装","user":{"login":"namikingsoft","id":3187220,"avatar_url":"https://avatars.githubusercontent.com/u/3187220?v=3","gravatar_id":"","url":"https://api.github.com/users/namikingsoft","html_url":"https://github.com/namikingsoft","followers_url":"https://api.github.com/users/namikingsoft/followers","following_url":"https://api.github.com/users/namikingsoft/following{/other_user}","gists_url":"https://api.github.com/users/namikingsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/namikingsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namikingsoft/subscriptions","organizations_url":"https://api.github.com/users/namikingsoft/orgs","repos_url":"https://api.github.com/users/namikingsoft/repos","events_url":"https://api.github.com/users/namikingsoft/events{/privacy}","received_events_url":"https://api.github.com/users/namikingsoft/received_events","type":"User","site_admin":false},"body":"開発バージョンと違い、パッケージビルドバージョンでは、\r\nコピペ機能などのEdit機能が使えないようなので。\r\n\r\n#### 参考URL\r\n\r\n* Electronでコピー＆ペーストを実装する\r\nhttp://qiita.com/j5kd/items/2be5f006b42a26a4f150\r\n\r\n* Electron で Mac のコピー＆ペーストを実装する\r\nhttp://hacknote.jp/archives/16729/\r\n","created_at":"2016-03-15T03:01:42Z","updated_at":"2016-03-15T09:17:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"43d5082941c86805731f69875284aa19932779bd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/pulls/11/commits","review_comments_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/pulls/11/comments","review_comment_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/issues/11/comments","statuses_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/statuses/2adf0bd22c04bd77f53802c3d87c48cfbbd40a16","head":{"label":"namikingsoft:feat/add-copy-and-paset","ref":"feat/add-copy-and-paset","sha":"2adf0bd22c04bd77f53802c3d87c48cfbbd40a16","user":{"login":"namikingsoft","id":3187220,"avatar_url":"https://avatars.githubusercontent.com/u/3187220?v=3","gravatar_id":"","url":"https://api.github.com/users/namikingsoft","html_url":"https://github.com/namikingsoft","followers_url":"https://api.github.com/users/namikingsoft/followers","following_url":"https://api.github.com/users/namikingsoft/following{/other_user}","gists_url":"https://api.github.com/users/namikingsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/namikingsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namikingsoft/subscriptions","organizations_url":"https://api.github.com/users/namikingsoft/orgs","repos_url":"https://api.github.com/users/namikingsoft/repos","events_url":"https://api.github.com/users/namikingsoft/events{/privacy}","received_events_url":"https://api.github.com/users/namikingsoft/received_events","type":"User","site_admin":false},"repo":{"id":53323813,"name":"electron-sandbox","full_name":"namikingsoft/electron-sandbox","owner":{"login":"namikingsoft","id":3187220,"avatar_url":"https://avatars.githubusercontent.com/u/3187220?v=3","gravatar_id":"","url":"https://api.github.com/users/namikingsoft","html_url":"https://github.com/namikingsoft","followers_url":"https://api.github.com/users/namikingsoft/followers","following_url":"https://api.github.com/users/namikingsoft/following{/other_user}","gists_url":"https://api.github.com/users/namikingsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/namikingsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namikingsoft/subscriptions","organizations_url":"https://api.github.com/users/namikingsoft/orgs","repos_url":"https://api.github.com/users/namikingsoft/repos","events_url":"https://api.github.com/users/namikingsoft/events{/privacy}","received_events_url":"https://api.github.com/users/namikingsoft/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/namikingsoft/electron-sandbox","description":"","fork":false,"url":"https://api.github.com/repos/namikingsoft/electron-sandbox","forks_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/forks","keys_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/teams","hooks_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/hooks","issue_events_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/events","assignees_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/tags","blobs_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/languages","stargazers_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/stargazers","contributors_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/contributors","subscribers_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/subscribers","subscription_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/subscription","commits_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/merges","archive_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/downloads","issues_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/labels{/name}","releases_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/releases{/id}","deployments_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/deployments","created_at":"2016-03-07T12:26:50Z","updated_at":"2016-03-09T14:30:48Z","pushed_at":"2016-03-15T09:14:57Z","git_url":"git://github.com/namikingsoft/electron-sandbox.git","ssh_url":"git@github.com:namikingsoft/electron-sandbox.git","clone_url":"https://github.com/namikingsoft/electron-sandbox.git","svn_url":"https://github.com/namikingsoft/electron-sandbox","homepage":null,"size":66,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"namikingsoft:master","ref":"master","sha":"6705eb9db128ee64f11f8c866a3e628914a16395","user":{"login":"namikingsoft","id":3187220,"avatar_url":"https://avatars.githubusercontent.com/u/3187220?v=3","gravatar_id":"","url":"https://api.github.com/users/namikingsoft","html_url":"https://github.com/namikingsoft","followers_url":"https://api.github.com/users/namikingsoft/followers","following_url":"https://api.github.com/users/namikingsoft/following{/other_user}","gists_url":"https://api.github.com/users/namikingsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/namikingsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namikingsoft/subscriptions","organizations_url":"https://api.github.com/users/namikingsoft/orgs","repos_url":"https://api.github.com/users/namikingsoft/repos","events_url":"https://api.github.com/users/namikingsoft/events{/privacy}","received_events_url":"https://api.github.com/users/namikingsoft/received_events","type":"User","site_admin":false},"repo":{"id":53323813,"name":"electron-sandbox","full_name":"namikingsoft/electron-sandbox","owner":{"login":"namikingsoft","id":3187220,"avatar_url":"https://avatars.githubusercontent.com/u/3187220?v=3","gravatar_id":"","url":"https://api.github.com/users/namikingsoft","html_url":"https://github.com/namikingsoft","followers_url":"https://api.github.com/users/namikingsoft/followers","following_url":"https://api.github.com/users/namikingsoft/following{/other_user}","gists_url":"https://api.github.com/users/namikingsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/namikingsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namikingsoft/subscriptions","organizations_url":"https://api.github.com/users/namikingsoft/orgs","repos_url":"https://api.github.com/users/namikingsoft/repos","events_url":"https://api.github.com/users/namikingsoft/events{/privacy}","received_events_url":"https://api.github.com/users/namikingsoft/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/namikingsoft/electron-sandbox","description":"","fork":false,"url":"https://api.github.com/repos/namikingsoft/electron-sandbox","forks_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/forks","keys_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/teams","hooks_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/hooks","issue_events_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/events","assignees_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/tags","blobs_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/languages","stargazers_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/stargazers","contributors_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/contributors","subscribers_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/subscribers","subscription_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/subscription","commits_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/merges","archive_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/downloads","issues_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/labels{/name}","releases_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/releases{/id}","deployments_url":"https://api.github.com/repos/namikingsoft/electron-sandbox/deployments","created_at":"2016-03-07T12:26:50Z","updated_at":"2016-03-09T14:30:48Z","pushed_at":"2016-03-15T09:14:57Z","git_url":"git://github.com/namikingsoft/electron-sandbox.git","ssh_url":"git@github.com:namikingsoft/electron-sandbox.git","clone_url":"https://github.com/namikingsoft/electron-sandbox.git","svn_url":"https://github.com/namikingsoft/electron-sandbox","homepage":null,"size":66,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/namikingsoft/electron-sandbox/pulls/11"},"html":{"href":"https://github.com/namikingsoft/electron-sandbox/pull/11"},"issue":{"href":"https://api.github.com/repos/namikingsoft/electron-sandbox/issues/11"},"comments":{"href":"https://api.github.com/repos/namikingsoft/electron-sandbox/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/namikingsoft/electron-sandbox/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/namikingsoft/electron-sandbox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/namikingsoft/electron-sandbox/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/namikingsoft/electron-sandbox/statuses/2adf0bd22c04bd77f53802c3d87c48cfbbd40a16"}}}}