Context menu bug in macOS fixed (#350)

* context menu now doesnt show in origin on mac

* fixed context menu action being called twice in macOS
This commit is contained in:
Aditya Bist
2017-12-18 14:45:54 -08:00
committed by GitHub
parent 67aac4e624
commit f6497a9ac4

View File

@@ -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;
}
@@ -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) {
@@ -136,7 +136,6 @@ export class RecentConnectionTreeController extends DefaultController {
},
getActionsContext: () => (actionContext)
});
return true;
}
}