Skip to content

Commit

Permalink
Context menu bug in macOS fixed (microsoft#350)
Browse files Browse the repository at this point in the history
* context menu now doesnt show in origin on mac

* fixed context menu action being called twice in macOS
  • Loading branch information
Aditya Bist authored Dec 18, 2017
1 parent 67aac4e commit f6497a9
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class RecentConnectionTreeController extends DefaultController {

protected onRightClick(tree: ITree, element: any, eventish: ICancelableEvent, origin: string = 'mouse'): boolean {
this.clickcb(element, eventish, origin);
this.onContextMenu(tree, element, event);
this.showContextMenu(tree, element, event);
return true;
}

Expand All @@ -113,7 +113,7 @@ export class RecentConnectionTreeController extends DefaultController {
return super.onKeyDown(tree, event);
}

public onContextMenu(tree: ITree, element: any, event: any): boolean {
public showContextMenu(tree: ITree, element: any, event: any): boolean {
var actionContext: any;

if (element instanceof ConnectionProfile) {
Expand All @@ -136,7 +136,6 @@ export class RecentConnectionTreeController extends DefaultController {
},
getActionsContext: () => (actionContext)
});

return true;
}
}

0 comments on commit f6497a9

Please sign in to comment.