Skip to content

Commit

Permalink
fix: zoom keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
dineug committed Apr 13, 2021
1 parent ad7678c commit 6931dbd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,5 +347,5 @@ container.appendChild(editor);
| Relationship - Zero N | Ctrl + Alt + 2, Cmd + Alt + 2 |
| Relationship - One Only | Ctrl + Alt + 3, Cmd + Alt + 3 |
| Relationship - One N | Ctrl + Alt + 4, Cmd + Alt + 4 |
| Zoom In - ERD | Alt + [+] |
| Zoom Out - ERD | Alt + [-] |
| Zoom In - ERD | Shift + Equal, Ctrl + Equal |
| Zoom Out - ERD | Shift + Minus, Ctrl + Minus |
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vuerd",
"version": "2.0.3",
"version": "2.0.4",
"description": "ERD editor",
"main": "dist/vuerd.js",
"module": "dist/vuerd.esm.js",
Expand Down
8 changes: 8 additions & 0 deletions src/core/keymap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,21 @@ export const createKeymap = (): Keymap => ({
},
],
zoomIn: [
{
shiftKey: true,
key: 'Equal',
},
{
ctrlKey: true,
key: 'Equal',
preventDefault: true,
},
],
zoomOut: [
{
shiftKey: true,
key: 'Minus',
},
{
ctrlKey: true,
key: 'Minus',
Expand Down

0 comments on commit 6931dbd

Please sign in to comment.