Skip to content

Commit

Permalink
Optimize tab navigation with auto-focus on editor
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulyadav-57 committed May 2, 2024
1 parent 1fd9f90 commit 7686212
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/workspace/Editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ const Editor: FC<Props> = ({ file, projectId, className = '' }) => {
editorRef.current.setValue(content);
}
setInitialFile({ id: file.id, content });
editorRef.current?.focus();
};

const markFileDirty = () => {
Expand Down

0 comments on commit 7686212

Please sign in to comment.