{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/6291","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/6291/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/6291/comments","events_url":"https://api.github.com/repos/electron/electron/issues/6291/events","html_url":"https://github.com/electron/electron/issues/6291","id":163009293,"number":6291,"title":"Knowing when webContents.sendInputEvent completes","user":{"login":"kirkouimet","id":62191,"avatar_url":"https://avatars.githubusercontent.com/u/62191?v=3","gravatar_id":"","url":"https://api.github.com/users/kirkouimet","html_url":"https://github.com/kirkouimet","followers_url":"https://api.github.com/users/kirkouimet/followers","following_url":"https://api.github.com/users/kirkouimet/following{/other_user}","gists_url":"https://api.github.com/users/kirkouimet/gists{/gist_id}","starred_url":"https://api.github.com/users/kirkouimet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirkouimet/subscriptions","organizations_url":"https://api.github.com/users/kirkouimet/orgs","repos_url":"https://api.github.com/users/kirkouimet/repos","events_url":"https://api.github.com/users/kirkouimet/events{/privacy}","received_events_url":"https://api.github.com/users/kirkouimet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-06-29T19:40:29Z","updated_at":"2016-07-02T01:13:01Z","closed_at":"2016-07-01T09:07:50Z","body":"`webContents.sendInputEvent()` is an asynchronous operation. Is there any way to be notified when the `sendInputEvent` operation completes?\r\n\r\nI've tried adding a listener to `ipc-message` on webContents but it does not seem to be catching sendInputEvents from `electron.remote.getCurrentWindow().webContents.sendInputEvent`.\r\n\r\nInterestingly enough, a test has been written for this and appears to be working:\r\n\r\nhttps://github.com/electron/electron/blob/master/spec/webview-spec.js#L704\r\n\r\nThis test in `webview-spec.js` is on a `webview` though and not `webContents`.\r\n\r\nThanks!\r\n\r\n* Electron version: 1.2.5\r\n* Operating system: macOS\r\n"},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/230075651","html_url":"https://github.com/electron/electron/issues/6291#issuecomment-230075651","issue_url":"https://api.github.com/repos/electron/electron/issues/6291","id":230075651,"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":"2016-07-02T01:13:01Z","updated_at":"2016-07-02T01:13:01Z","body":"You have to manually capture the DOM events and then send it via IPC:\r\nhttps://github.com/electron/electron/blob/master/spec/fixtures/pages/onkeyup.html"}}
{"actor":{"display_login":"zcbenz"}}