Skip to content

Commit

Permalink
Cmd+Scroll to zoom on a mac.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam El-Husseini committed Sep 22, 2016
1 parent 7baf009 commit fdf635d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/editor/browser/controller/mouseHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export class MouseHandler extends ViewEventHandler implements IDisposable {
return;
}
let e = new StandardMouseWheelEvent(browserEvent);
if (e.browserEvent.ctrlKey) {
if (e.browserEvent.ctrlKey || e.browserEvent.metaKey) {
let zoomLevel:number = EditorZoom.getZoomLevel();
let delta = e.deltaY > 0 ? 1 : -1;
EditorZoom.setZoomLevel(zoomLevel + delta);
Expand Down

0 comments on commit fdf635d

Please sign in to comment.