mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
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:
@@ -89,7 +89,7 @@ export class RecentConnectionTreeController extends DefaultController {
|
|||||||
|
|
||||||
protected onRightClick(tree: ITree, element: any, eventish: ICancelableEvent, origin: string = 'mouse'): boolean {
|
protected onRightClick(tree: ITree, element: any, eventish: ICancelableEvent, origin: string = 'mouse'): boolean {
|
||||||
this.clickcb(element, eventish, origin);
|
this.clickcb(element, eventish, origin);
|
||||||
this.onContextMenu(tree, element, event);
|
this.showContextMenu(tree, element, event);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -113,7 +113,7 @@ export class RecentConnectionTreeController extends DefaultController {
|
|||||||
return super.onKeyDown(tree, event);
|
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;
|
var actionContext: any;
|
||||||
|
|
||||||
if (element instanceof ConnectionProfile) {
|
if (element instanceof ConnectionProfile) {
|
||||||
@@ -136,7 +136,6 @@ export class RecentConnectionTreeController extends DefaultController {
|
|||||||
},
|
},
|
||||||
getActionsContext: () => (actionContext)
|
getActionsContext: () => (actionContext)
|
||||||
});
|
});
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user