{"action":"created","issue":{"url":"https://api.github.com/repos/atom/electron/issues/1771","labels_url":"https://api.github.com/repos/atom/electron/issues/1771/labels{/name}","comments_url":"https://api.github.com/repos/atom/electron/issues/1771/comments","events_url":"https://api.github.com/repos/atom/electron/issues/1771/events","html_url":"https://github.com/atom/electron/issues/1771","id":80619303,"number":1771,"title":"Global shortcut and previously focused application","user":{"login":"BenjaminVanRyseghem","id":407891,"avatar_url":"https://avatars.githubusercontent.com/u/407891?v=3","gravatar_id":"","url":"https://api.github.com/users/BenjaminVanRyseghem","html_url":"https://github.com/BenjaminVanRyseghem","followers_url":"https://api.github.com/users/BenjaminVanRyseghem/followers","following_url":"https://api.github.com/users/BenjaminVanRyseghem/following{/other_user}","gists_url":"https://api.github.com/users/BenjaminVanRyseghem/gists{/gist_id}","starred_url":"https://api.github.com/users/BenjaminVanRyseghem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenjaminVanRyseghem/subscriptions","organizations_url":"https://api.github.com/users/BenjaminVanRyseghem/orgs","repos_url":"https://api.github.com/users/BenjaminVanRyseghem/repos","events_url":"https://api.github.com/users/BenjaminVanRyseghem/events{/privacy}","received_events_url":"https://api.github.com/users/BenjaminVanRyseghem/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-25T18:06:56Z","updated_at":"2015-05-26T07:56:17Z","closed_at":"2015-05-26T07:56:17Z","body":"I have a question and I can't ind any documentation about it.\r\n\r\nI would like to have a global shortcut that opens a form, but depending on which app had the focus at the moment the shortcut was triggered, I would like to fill up the form.\r\n\r\nSo in a nutshell, is there a way to know which application had the focus when the shortcut is triggered? Or should I try to have an ad-hoc solution for each OS?\r\n\r\nThanks in advance"},"comment":{"url":"https://api.github.com/repos/atom/electron/issues/comments/105433197","html_url":"https://github.com/atom/electron/issues/1771#issuecomment-105433197","issue_url":"https://api.github.com/repos/atom/electron/issues/1771","id":105433197,"user":{"login":"zcbenz","id":639601,"avatar_url":"https://avatars.githubusercontent.com/u/639601?v=3","gravatar_id":"","url":"https://api.github.com/users/zcbenz","html_url":"https://github.com/zcbenz","followers_url":"https://api.github.com/users/zcbenz/followers","following_url":"https://api.github.com/users/zcbenz/following{/other_user}","gists_url":"https://api.github.com/users/zcbenz/gists{/gist_id}","starred_url":"https://api.github.com/users/zcbenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcbenz/subscriptions","organizations_url":"https://api.github.com/users/zcbenz/orgs","repos_url":"https://api.github.com/users/zcbenz/repos","events_url":"https://api.github.com/users/zcbenz/events{/privacy}","received_events_url":"https://api.github.com/users/zcbenz/received_events","type":"User","site_admin":true},"created_at":"2015-05-26T07:56:17Z","updated_at":"2015-05-26T07:56:17Z","body":"Electron (and most other GUI framework) is only aware of windows opened in its own app, inspecting operating system's other windows is out of Electron's scope. But you can always write a native node module to achieve this."}}