{"action":"created","issue":{"url":"https://api.github.com/repos/ckfinder/ckfinder/issues/110","labels_url":"https://api.github.com/repos/ckfinder/ckfinder/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/ckfinder/ckfinder/issues/110/comments","events_url":"https://api.github.com/repos/ckfinder/ckfinder/issues/110/events","html_url":"https://github.com/ckfinder/ckfinder/issues/110","id":75493575,"number":110,"title":"Add shortcuts listing.","user":{"login":"jodator","id":247363,"avatar_url":"https://avatars.githubusercontent.com/u/247363?v=3","gravatar_id":"","url":"https://api.github.com/users/jodator","html_url":"https://github.com/jodator","followers_url":"https://api.github.com/users/jodator/followers","following_url":"https://api.github.com/users/jodator/following{/other_user}","gists_url":"https://api.github.com/users/jodator/gists{/gist_id}","starred_url":"https://api.github.com/users/jodator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodator/subscriptions","organizations_url":"https://api.github.com/users/jodator/orgs","repos_url":"https://api.github.com/users/jodator/repos","events_url":"https://api.github.com/users/jodator/events{/privacy}","received_events_url":"https://api.github.com/users/jodator/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ckfinder/ckfinder/labels/Enhancement","name":"Enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/ckfinder/ckfinder/labels/Keyboard","name":"Keyboard","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-12T07:04:12Z","updated_at":"2015-08-19T13:52:42Z","closed_at":"2015-08-19T13:52:42Z","body":"There is a common way to show available shortcuts in web-apps: `?` or `CTRL+?`, which displays a dialog:\r\n![selection_012](https://cloud.githubusercontent.com/assets/247363/7581537/7e6612dc-f884-11e4-8659-4fb58b1fd529.png)\r\nI think that adding this might be nice addition to CKFinder.\r\n\r\nAlso we should consider adding a simple API for defining set of shortcuts from other plugins.\r\n\r\nBase idea is to add an event, like `shortcuts:list` on which other plugins could listen and add their shortcuts:\r\n\r\n````js\r\nfinder.on( 'shortcuts:list', function( evt ) {\r\n    evt.data.shortcuts.push( {\r\n        group: 'xyz-shortcuts',\r\n        label: 'Plugin XYZ',\r\n        shortcuts: [\r\n            { label: 'Toggle selection', shortcut: 'o/enter' },\r\n            { label: 'Run XYZ action', shortcut: 'shift+b' }\r\n        ]\r\n    } );\r\n} );\r\n````\r\n\r\nThis can be implemented as a plugin also."},"comment":{"url":"https://api.github.com/repos/ckfinder/ckfinder/issues/comments/132605842","html_url":"https://github.com/ckfinder/ckfinder/issues/110#issuecomment-132605842","issue_url":"https://api.github.com/repos/ckfinder/ckfinder/issues/110","id":132605842,"user":{"login":"jodator","id":247363,"avatar_url":"https://avatars.githubusercontent.com/u/247363?v=3","gravatar_id":"","url":"https://api.github.com/users/jodator","html_url":"https://github.com/jodator","followers_url":"https://api.github.com/users/jodator/followers","following_url":"https://api.github.com/users/jodator/following{/other_user}","gists_url":"https://api.github.com/users/jodator/gists{/gist_id}","starred_url":"https://api.github.com/users/jodator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodator/subscriptions","organizations_url":"https://api.github.com/users/jodator/orgs","repos_url":"https://api.github.com/users/jodator/repos","events_url":"https://api.github.com/users/jodator/events{/privacy}","received_events_url":"https://api.github.com/users/jodator/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T13:52:42Z","updated_at":"2015-08-19T13:52:42Z","body":"\r\n\r\nFixed. The updated code will be publicly available in the upcoming release.\r\n"}}