Skip to content

Allow middle mouse click to open file entry in the background#42769

Merged
bpasero merged 5 commits intomicrosoft:masterfrom
usernamehw:mmc_quick_open
Feb 5, 2018
Merged

Allow middle mouse click to open file entry in the background#42769
bpasero merged 5 commits intomicrosoft:masterfrom
usernamehw:mmc_quick_open

Conversation

@usernamehw
Copy link
Contributor

Fixes #42714

@bpasero bpasero added this to the On Deck milestone Feb 2, 2018
@bpasero bpasero self-assigned this Feb 2, 2018
// Trigger open of element on selection
if (this.isVisible()) {
let mode = preferredMode || Mode.OPEN;
let mode = (event && event.payload && event.payload.originalEvent && event.payload.originalEvent.middleButton ? Mode.OPEN_IN_BACKGROUND : false) || preferredMode || Mode.OPEN;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer if this was done at the place where the event happens (here) and then passed over as preferredMode

@bpasero bpasero modified the milestones: On Deck, February 2018 Feb 5, 2018
@bpasero bpasero merged commit 81d6d82 into microsoft:master Feb 5, 2018
@bpasero
Copy link
Member

bpasero commented Feb 5, 2018

Thanks

@usernamehw usernamehw deleted the mmc_quick_open branch February 5, 2018 12:17
@github-actions github-actions bot locked and limited conversation to collaborators Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow middle mouse click to open an entry in the background

2 participants