Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #5287 from darkdh/autofill-popup
Browse files Browse the repository at this point in the history
Implement hide-autofill-popup
  • Loading branch information
bbondy authored Nov 7, 2016
2 parents afd169b + 68d8db6 commit 9a8c957
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/components/frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -811,8 +811,10 @@ class Frame extends ImmutableComponent {
contextMenus.onShowAutofillMenu(e.suggestions, e.rect, this.frame)
})
this.webview.addEventListener('hide-autofill-popup', (e) => {
// TODO(Anthony): conflict with contextmenu
// windowActions.setContextMenuDetail()
let webContents = this.webview.getWebContents()
if (webContents && webContents.isFocused()) {
windowActions.setContextMenuDetail()
}
})
this.webview.addEventListener('ipc-message', (e) => {
let method = () => {}
Expand Down

0 comments on commit 9a8c957

Please sign in to comment.