Skip to content

Commit

Permalink
Merge pull request brave#7038 from michalbe/issue-3219-focus-frame
Browse files Browse the repository at this point in the history
Focus active webview when closing downloads-bar
  • Loading branch information
bbondy authored Feb 7, 2017
2 parents fc674d1 + 14d07d3 commit 6d3b9e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/renderer/components/downloadsBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const ImmutableComponent = require('../../../js/components/immutableComponent')
const Button = require('../../../js/components/button')
const contextMenus = require('../../../js/contextMenus')
const windowActions = require('../../../js/actions/windowActions')
const webviewActions = require('../../../js/actions/webviewActions')
const DownloadItem = require('./downloadItem')

class DownloadsBar extends ImmutableComponent {
Expand All @@ -16,6 +17,7 @@ class DownloadsBar extends ImmutableComponent {
}
onHideDownloadsToolbar () {
windowActions.setDownloadsToolbarVisible(false)
webviewActions.setWebviewFocused()
}
render () {
const getComputedStyle = require('../getComputedStyle')
Expand Down

0 comments on commit 6d3b9e1

Please sign in to comment.