{"action":"created","comment":{"url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/pulls/comments/77649418","id":77649418,"diff_hunk":"@@ -82,14 +83,34 @@ export function getCode( key ) {\n  */\n export function parseKeystroke( keystroke ) {\n \tif ( typeof keystroke == 'string' ) {\n-\t\tkeystroke = keystroke.split( /\\s*\\+\\s*/ );\n+\t\tkeystroke = splitKeystrokeText( keystroke );\n \t}\n \n \treturn keystroke\n \t\t.map( key => ( typeof key == 'string' ) ? getCode( key ) : key )\n \t\t.reduce( ( key, sum ) => sum + key, 0 );\n }\n \n+/**\n+ * It translates any keystroke string text like `\"CTRL+A\"` to an\n+ * environment–specific keystroke, i.e. `\"⌘A\"` on Mac OSX.\n+ *\n+ * @method utils.keyboard.getEnvKeystrokeText\n+ * @param {String} keystroke Keystroke text.\n+ * @returns {String} Keystroke text specific for the environment.\n+ */\n+export function getEnvKeystrokeText( keystroke ) {\n+\tconst split = splitKeystrokeText( keystroke );\n+\n+\tif ( env.mac ) {\n+\t\tif ( split[ 0 ].toLowerCase() == 'ctrl' ) {","path":"src/keyboard.js","position":33,"original_position":33,"commit_id":"37b18069241d473af88fe0d8a88ec1b85d3116e8","original_commit_id":"37b18069241d473af88fe0d8a88ec1b85d3116e8","user":{"login":"Reinmar","id":156149,"avatar_url":"https://avatars.githubusercontent.com/u/156149?v=3","gravatar_id":"","url":"https://api.github.com/users/Reinmar","html_url":"https://github.com/Reinmar","followers_url":"https://api.github.com/users/Reinmar/followers","following_url":"https://api.github.com/users/Reinmar/following{/other_user}","gists_url":"https://api.github.com/users/Reinmar/gists{/gist_id}","starred_url":"https://api.github.com/users/Reinmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reinmar/subscriptions","organizations_url":"https://api.github.com/users/Reinmar/orgs","repos_url":"https://api.github.com/users/Reinmar/repos","events_url":"https://api.github.com/users/Reinmar/events{/privacy}","received_events_url":"https://api.github.com/users/Reinmar/received_events","type":"User","site_admin":false},"body":"I can see that even alone I can trigger a longer discussion so I moved this problem to https://github.com/ckeditor/ckeditor5-utils/issues/74 to not block this PR.","created_at":"2016-09-06T14:45:39Z","updated_at":"2016-09-06T14:45:39Z","html_url":"https://github.com/ckeditor/ckeditor5-utils/pull/69#discussion_r77649418","pull_request_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/pulls/69","_links":{"self":{"href":"https://api.github.com/repos/ckeditor/ckeditor5-utils/pulls/comments/77649418"},"html":{"href":"https://github.com/ckeditor/ckeditor5-utils/pull/69#discussion_r77649418"},"pull_request":{"href":"https://api.github.com/repos/ckeditor/ckeditor5-utils/pulls/69"}}},"pull_request":{"url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/pulls/69","id":83275620,"html_url":"https://github.com/ckeditor/ckeditor5-utils/pull/69","diff_url":"https://github.com/ckeditor/ckeditor5-utils/pull/69.diff","patch_url":"https://github.com/ckeditor/ckeditor5-utils/pull/69.patch","issue_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/issues/69","number":69,"state":"open","locked":false,"title":"t/68: Provided an utility to translate keystroke strings depending on environment","user":{"login":"oleq","id":1099479,"avatar_url":"https://avatars.githubusercontent.com/u/1099479?v=3","gravatar_id":"","url":"https://api.github.com/users/oleq","html_url":"https://github.com/oleq","followers_url":"https://api.github.com/users/oleq/followers","following_url":"https://api.github.com/users/oleq/following{/other_user}","gists_url":"https://api.github.com/users/oleq/gists{/gist_id}","starred_url":"https://api.github.com/users/oleq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleq/subscriptions","organizations_url":"https://api.github.com/users/oleq/orgs","repos_url":"https://api.github.com/users/oleq/repos","events_url":"https://api.github.com/users/oleq/events{/privacy}","received_events_url":"https://api.github.com/users/oleq/received_events","type":"User","site_admin":false},"body":"Closes #68.","created_at":"2016-08-30T13:54:36Z","updated_at":"2016-09-06T14:45:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7c5b2c1b4320de50cb36fbae678fa9484a57f9d6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/pulls/69/commits","review_comments_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/pulls/69/comments","review_comment_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/issues/69/comments","statuses_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/statuses/37b18069241d473af88fe0d8a88ec1b85d3116e8","head":{"label":"ckeditor:t/68","ref":"t/68","sha":"37b18069241d473af88fe0d8a88ec1b85d3116e8","user":{"login":"ckeditor","id":825710,"avatar_url":"https://avatars.githubusercontent.com/u/825710?v=3","gravatar_id":"","url":"https://api.github.com/users/ckeditor","html_url":"https://github.com/ckeditor","followers_url":"https://api.github.com/users/ckeditor/followers","following_url":"https://api.github.com/users/ckeditor/following{/other_user}","gists_url":"https://api.github.com/users/ckeditor/gists{/gist_id}","starred_url":"https://api.github.com/users/ckeditor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckeditor/subscriptions","organizations_url":"https://api.github.com/users/ckeditor/orgs","repos_url":"https://api.github.com/users/ckeditor/repos","events_url":"https://api.github.com/users/ckeditor/events{/privacy}","received_events_url":"https://api.github.com/users/ckeditor/received_events","type":"Organization","site_admin":false},"repo":{"id":53504694,"name":"ckeditor5-utils","full_name":"ckeditor/ckeditor5-utils","owner":{"login":"ckeditor","id":825710,"avatar_url":"https://avatars.githubusercontent.com/u/825710?v=3","gravatar_id":"","url":"https://api.github.com/users/ckeditor","html_url":"https://github.com/ckeditor","followers_url":"https://api.github.com/users/ckeditor/followers","following_url":"https://api.github.com/users/ckeditor/following{/other_user}","gists_url":"https://api.github.com/users/ckeditor/gists{/gist_id}","starred_url":"https://api.github.com/users/ckeditor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckeditor/subscriptions","organizations_url":"https://api.github.com/users/ckeditor/orgs","repos_url":"https://api.github.com/users/ckeditor/repos","events_url":"https://api.github.com/users/ckeditor/events{/privacy}","received_events_url":"https://api.github.com/users/ckeditor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ckeditor/ckeditor5-utils","description":"The utils for CKEditor 5 project.","fork":false,"url":"https://api.github.com/repos/ckeditor/ckeditor5-utils","forks_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/forks","keys_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/teams","hooks_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/hooks","issue_events_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/issues/events{/number}","events_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/events","assignees_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/assignees{/user}","branches_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/branches{/branch}","tags_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/tags","blobs_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/languages","stargazers_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/stargazers","contributors_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/contributors","subscribers_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/subscribers","subscription_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/subscription","commits_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/contents/{+path}","compare_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/merges","archive_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/downloads","issues_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/issues{/number}","pulls_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/labels{/name}","releases_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/releases{/id}","deployments_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/deployments","created_at":"2016-03-09T14:37:28Z","updated_at":"2016-03-10T01:23:55Z","pushed_at":"2016-09-01T20:02:21Z","git_url":"git://github.com/ckeditor/ckeditor5-utils.git","ssh_url":"git@github.com:ckeditor/ckeditor5-utils.git","clone_url":"https://github.com/ckeditor/ckeditor5-utils.git","svn_url":"https://github.com/ckeditor/ckeditor5-utils","homepage":"","size":1116,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":19,"forks":0,"open_issues":19,"watchers":1,"default_branch":"master"}},"base":{"label":"ckeditor:master","ref":"master","sha":"30346a78d7b349fa05850cfb8dddcc0c474322ec","user":{"login":"ckeditor","id":825710,"avatar_url":"https://avatars.githubusercontent.com/u/825710?v=3","gravatar_id":"","url":"https://api.github.com/users/ckeditor","html_url":"https://github.com/ckeditor","followers_url":"https://api.github.com/users/ckeditor/followers","following_url":"https://api.github.com/users/ckeditor/following{/other_user}","gists_url":"https://api.github.com/users/ckeditor/gists{/gist_id}","starred_url":"https://api.github.com/users/ckeditor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckeditor/subscriptions","organizations_url":"https://api.github.com/users/ckeditor/orgs","repos_url":"https://api.github.com/users/ckeditor/repos","events_url":"https://api.github.com/users/ckeditor/events{/privacy}","received_events_url":"https://api.github.com/users/ckeditor/received_events","type":"Organization","site_admin":false},"repo":{"id":53504694,"name":"ckeditor5-utils","full_name":"ckeditor/ckeditor5-utils","owner":{"login":"ckeditor","id":825710,"avatar_url":"https://avatars.githubusercontent.com/u/825710?v=3","gravatar_id":"","url":"https://api.github.com/users/ckeditor","html_url":"https://github.com/ckeditor","followers_url":"https://api.github.com/users/ckeditor/followers","following_url":"https://api.github.com/users/ckeditor/following{/other_user}","gists_url":"https://api.github.com/users/ckeditor/gists{/gist_id}","starred_url":"https://api.github.com/users/ckeditor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckeditor/subscriptions","organizations_url":"https://api.github.com/users/ckeditor/orgs","repos_url":"https://api.github.com/users/ckeditor/repos","events_url":"https://api.github.com/users/ckeditor/events{/privacy}","received_events_url":"https://api.github.com/users/ckeditor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ckeditor/ckeditor5-utils","description":"The utils for CKEditor 5 project.","fork":false,"url":"https://api.github.com/repos/ckeditor/ckeditor5-utils","forks_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/forks","keys_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/teams","hooks_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/hooks","issue_events_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/issues/events{/number}","events_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/events","assignees_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/assignees{/user}","branches_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/branches{/branch}","tags_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/tags","blobs_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/languages","stargazers_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/stargazers","contributors_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/contributors","subscribers_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/subscribers","subscription_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/subscription","commits_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/contents/{+path}","compare_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/merges","archive_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/downloads","issues_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/issues{/number}","pulls_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/labels{/name}","releases_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/releases{/id}","deployments_url":"https://api.github.com/repos/ckeditor/ckeditor5-utils/deployments","created_at":"2016-03-09T14:37:28Z","updated_at":"2016-03-10T01:23:55Z","pushed_at":"2016-09-01T20:02:21Z","git_url":"git://github.com/ckeditor/ckeditor5-utils.git","ssh_url":"git@github.com:ckeditor/ckeditor5-utils.git","clone_url":"https://github.com/ckeditor/ckeditor5-utils.git","svn_url":"https://github.com/ckeditor/ckeditor5-utils","homepage":"","size":1116,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":19,"forks":0,"open_issues":19,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ckeditor/ckeditor5-utils/pulls/69"},"html":{"href":"https://github.com/ckeditor/ckeditor5-utils/pull/69"},"issue":{"href":"https://api.github.com/repos/ckeditor/ckeditor5-utils/issues/69"},"comments":{"href":"https://api.github.com/repos/ckeditor/ckeditor5-utils/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/ckeditor/ckeditor5-utils/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/ckeditor/ckeditor5-utils/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ckeditor/ckeditor5-utils/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/ckeditor/ckeditor5-utils/statuses/37b18069241d473af88fe0d8a88ec1b85d3116e8"}}}}
{"actor":{"display_login":"Reinmar"}}