Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
Feb 5, 2018
Merged

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

merged 5 commits into from
Feb 5, 2018

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
@@ -516,7 +516,7 @@ export class QuickOpenWidget implements IModelProvider {

// 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