{"action":"created","issue":{"url":"https://api.github.com/repos/xbmc/xbmc/issues/7235","labels_url":"https://api.github.com/repos/xbmc/xbmc/issues/7235/labels{/name}","comments_url":"https://api.github.com/repos/xbmc/xbmc/issues/7235/comments","events_url":"https://api.github.com/repos/xbmc/xbmc/issues/7235/events","html_url":"https://github.com/xbmc/xbmc/pull/7235","id":85535615,"number":7235,"title":"[builtin] use active window if no window is specified for built-in action","user":{"login":"xhaggi","id":1878991,"avatar_url":"https://avatars.githubusercontent.com/u/1878991?v=3","gravatar_id":"","url":"https://api.github.com/users/xhaggi","html_url":"https://github.com/xhaggi","followers_url":"https://api.github.com/users/xhaggi/followers","following_url":"https://api.github.com/users/xhaggi/following{/other_user}","gists_url":"https://api.github.com/users/xhaggi/gists{/gist_id}","starred_url":"https://api.github.com/users/xhaggi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xhaggi/subscriptions","organizations_url":"https://api.github.com/users/xhaggi/orgs","repos_url":"https://api.github.com/users/xhaggi/repos","events_url":"https://api.github.com/users/xhaggi/events{/privacy}","received_events_url":"https://api.github.com/users/xhaggi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xbmc/xbmc/labels/Fix","name":"Fix","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-05T13:39:22Z","updated_at":"2015-06-07T08:19:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/xbmc/xbmc/pulls/7235","html_url":"https://github.com/xbmc/xbmc/pull/7235","diff_url":"https://github.com/xbmc/xbmc/pull/7235.diff","patch_url":"https://github.com/xbmc/xbmc/pull/7235.patch"},"body":"I've spotted this while I'm working on something other.\r\n\r\nThe built-in `Action(action)` which could hold an optional second parameter (atm undocumented in our wiki) which is the window name,  don't work like expected if you don't supply the window name. As documented in our wiki it should be `Executes an action for the active window (same as in keymap)`, but instead it calls `g_application.OnAction()` see https://github.com/xbmc/xbmc/blob/master/xbmc/ApplicationMessenger.cpp#L745"},"comment":{"url":"https://api.github.com/repos/xbmc/xbmc/issues/comments/109719916","html_url":"https://github.com/xbmc/xbmc/pull/7235#issuecomment-109719916","issue_url":"https://api.github.com/repos/xbmc/xbmc/issues/7235","id":109719916,"user":{"login":"Montellese","id":75864,"avatar_url":"https://avatars.githubusercontent.com/u/75864?v=3","gravatar_id":"","url":"https://api.github.com/users/Montellese","html_url":"https://github.com/Montellese","followers_url":"https://api.github.com/users/Montellese/followers","following_url":"https://api.github.com/users/Montellese/following{/other_user}","gists_url":"https://api.github.com/users/Montellese/gists{/gist_id}","starred_url":"https://api.github.com/users/Montellese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Montellese/subscriptions","organizations_url":"https://api.github.com/users/Montellese/orgs","repos_url":"https://api.github.com/users/Montellese/repos","events_url":"https://api.github.com/users/Montellese/events{/privacy}","received_events_url":"https://api.github.com/users/Montellese/received_events","type":"User","site_admin":false},"created_at":"2015-06-07T08:19:48Z","updated_at":"2015-06-07T08:19:48Z","body":"See https://github.com/xbmc/xbmc/blob/master/xbmc/Application.cpp#L2135 in `CApplication::OnAction()`. All actions that aren't handled specifically above are passed to the currently active window/dialog."}}