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

Commit

Permalink
navbar - support ctrl/cmd-click on View Site Files btn
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Sep 12, 2016
1 parent e705e9e commit 688b50a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/shell-window/ui/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,12 @@ function onClickBookmark (e) {

function onClickViewFiles (e) {
var page = getEventPage(e)
if (page)
page.loadURL('view-'+page.getURL())
if (page) {
if (e.metaKey || e.ctrlKey) // popup
pages.setActive(pages.create('view-'+page.getURL()))
else
page.loadURL('view-'+page.getURL()) // goto
}
}

function onClickZoom (e) {
Expand Down

0 comments on commit 688b50a

Please sign in to comment.