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

Implement hide-autofill-popup #5287

Merged
merged 1 commit into from
Nov 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions js/components/frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -804,8 +804,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