Skip to content

Commit

Permalink
fix: resolve keyboard event handling logic issue
Browse files Browse the repository at this point in the history
  • Loading branch information
田丰 committed Jan 20, 2025
1 parent 71726a3 commit 5fee4db
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 5fee4db

Please sign in to comment.