Skip to content

Commit

Permalink
Fix issue where jj could not be entered in Vim mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerwins committed Sep 13, 2024
1 parent c75c6af commit e0bb3a7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions frontend/src/components/editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ function Editor(props: EditorProps) {
],
});

// Vim key mapping: Map 'jj' to '<Esc>' in insert mode
Vim.map("jj", "<Esc>", "insert");

const view = new EditorView({ state, parent: element });
dispatch(setCmView(view));

Expand Down

0 comments on commit e0bb3a7

Please sign in to comment.