Skip to content

Commit

Permalink
feat: optimize zoom hotkey
Browse files Browse the repository at this point in the history
  • Loading branch information
F-star committed Jul 22, 2024
1 parent 95f7088 commit a70f624
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/host_event_manager/command_key_binding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class CommandKeyBinding {
editor.render();
};
editor.keybindingManager.register({
key: { metaKey: true, keyCode: 'Equal' },
key: [{ metaKey: true, keyCode: 'Equal' }, { keyCode: 'Equal' }],
winKey: { ctrlKey: true, keyCode: 'Equal' },
actionName: 'Zoom In',
action: zoomInAction,
Expand All @@ -145,7 +145,7 @@ export class CommandKeyBinding {
editor.render();
};
editor.keybindingManager.register({
key: { metaKey: true, keyCode: 'Minus' },
key: [{ metaKey: true, keyCode: 'Minus' }, { keyCode: 'Minus' }],
winKey: { ctrlKey: true, keyCode: 'Minus' },
actionName: 'Zoom Out',
action: zoomOutAction,
Expand Down

0 comments on commit a70f624

Please sign in to comment.