<p dir="auto">Sorry if this is a duplicate.  I searched and searched and I didn't find something quite the same, but it <em>is</em> similar and probably related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="352877413" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/14255" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/14255/hovercard" href="https://github.com/electron/electron/issues/14255">#14255</a> and a few other tickets all reporting broken events (all the tickets I found are different classes of events, none specific to key events) since OOPIF.</p>
<p dir="auto">I'm also not certain if this is intended behavior with OOPIF.</p>
<ul dir="auto">
<li>Output of <code class="notranslate">node_modules/.bin/electron --version</code>: <code class="notranslate">v3.0.2</code></li>
<li>Operating System (Platform and Version):</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ uname -a
Linux lyra 4.18.10-arch1-1-ARCH #1 SMP PREEMPT Wed Sep 26 09:48:22 UTC 2018 x86_64 GNU/Linux"><pre class="notranslate"><code class="notranslate">$ uname -a
Linux lyra 4.18.10-arch1-1-ARCH #1 SMP PREEMPT Wed Sep 26 09:48:22 UTC 2018 x86_64 GNU/Linux
</code></pre></div>
<ul dir="auto">
<li>Output of <code class="notranslate">node_modules/.bin/electron --version</code> on last known working Electron version (if applicable): <code class="notranslate">v3.0.0-beta.5</code></li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
<code class="notranslate">keydown</code> <code class="notranslate">keypress</code>, etc events are emitted when a webview is focused.</p>
<p dir="auto"><strong>Actual behavior</strong><br>
No such events are emitted.</p>
<p dir="auto"><strong>To Reproduce</strong><br>
Please see <a href="https://github.com/cprussin/electron-webview-key-event-bug">https://github.com/cprussin/electron-webview-key-event-bug</a>, specifically the commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/cprussin/electron-webview-key-event-bug/commit/1cec1ec745331f272b6b3b0ee26446686cc28900/hovercard" href="https://github.com/cprussin/electron-webview-key-event-bug/commit/1cec1ec745331f272b6b3b0ee26446686cc28900">cprussin/electron-webview-key-event-bug@<tt>1cec1ec</tt></a>.  Clone the repo and run the typical setup commands:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/cprussin/electron-webview-key-event-bug.git
$ cd electron-webview-key-event-bug
$ yarn
$ npx electron ."><pre class="notranslate">$ git clone https://github.com/cprussin/electron-webview-key-event-bug.git
$ <span class="pl-c1">cd</span> electron-webview-key-event-bug
$ yarn
$ npx electron <span class="pl-c1">.</span></pre></div>
<p dir="auto">Note that when you press any keys, you get an alert indicating what key you pressed.  Then, focus the webview and note that no longer do the alerts show.  Note that there's a key down listener attached to both the webview itself, and the document element of the frame.</p>
<p dir="auto"><strong>Additional Information</strong></p>
<p dir="auto">Everything inside the webview still works properly--e.g., if I add listeners to the document element in a preload script, they are fired properly.</p>
<p dir="auto"><strong>EDIT</strong>: I did further testing, and I've noticed that the <code class="notranslate">before-input-event</code> event on the <code class="notranslate">webContents</code> instance for the window containing the webview is also not fired.  Not that this is particularly unexpected, just figured it might be interesting or helpful.</p>
<p dir="auto"><strong>EDIT 2</strong>: after more testing, this appears to work up to <code class="notranslate">3.0.0-beta.5</code>, as with the related bug I linked (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="352877413" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/14255" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/14255/hovercard" href="https://github.com/electron/electron/issues/14255">#14255</a>)  I've updated the header to this ticket accordingly.</p>
<ul dir="auto">
<li>Electron version: 1.7.10</li>
<li>Operating system: Mac OS High Sierra and Mac OS Sierra</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">shell.openExternal() should open the url in the chrome new tab.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">If you open a url using shell.openExternal() when my chrome had received a update in Mac and I didn't relaunch the chrome it will open a empty chrome tab.</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">You can duplicate this issue by going back to older version of chrome in mac and check for update but don't relaunch it.</p>
<p dir="auto">Now try opening a url using shell.openExternal() it will just give you a empty tab.</p>