Skip to content

Commit

Permalink
fix: resolve keyboard event handling logic issue (#2680)
Browse files Browse the repository at this point in the history
Co-authored-by: 田丰 <[email protected]>
  • Loading branch information
anjiazhuyouxing and 田丰 authored Jan 20, 2025
1 parent f06fa62 commit 8440e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/semi-json-viewer-core/src/view/edit/editWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ export class EditWidget {
if (e.metaKey && !e.shiftKey) {
e.preventDefault();
this._jsonModel.undo();
} else {
} else if (e.metaKey && e.shiftKey) {
e.preventDefault();
this._jsonModel.redo();
}
Expand Down

0 comments on commit 8440e5c

Please sign in to comment.