Skip to content

Commit

Permalink
Support MacOS with Command + click
Browse files Browse the repository at this point in the history
Ctrl + click is context menu in MacOS
  • Loading branch information
sransara committed Nov 7, 2023
1 parent 535f0f5 commit 7bdf3c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/flamechart-pan-zoom-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ export class FlamechartPanZoomView extends Component<FlamechartPanZoomViewProps,
if (this.hoveredLabel) {
this.props.onNodeSelect(this.hoveredLabel.node)
this.renderCanvas()
if (ev.ctrlKey) {
if (ev.ctrlKey || ev.metaKey) {
const frame = this.hoveredLabel.node.frame
if (frame.file) {
;(window as any).vscode.postMessage({
Expand Down

0 comments on commit 7bdf3c7

Please sign in to comment.