mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 01:25:37 -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 {
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user