Skip to content

Commit acff77f

Browse files
authored
feat: MDEditor에서 Tab 키 포커스 이동 활성화 (#514)
- 기존: Tab/Shift+Tab 입력 시 들여쓰기 동작 - 변경: Tab/Shift+Tab으로 포커스 이동 (브라우저 기본 동작)
1 parent 3392461 commit acff77f

File tree

1 file changed

+2
-1
lines changed
  • fundamentals/today-i-learned/src/pages/timeline/components

1 file changed

+2
-1
lines changed

fundamentals/today-i-learned/src/pages/timeline/components/PostInput.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export function PostInput({
8888
preview="edit"
8989
hideToolbar={true}
9090
visibleDragbar={false}
91+
defaultTabEnable={true}
9192
textareaProps={{
9293
placeholder:
9394
"작은 기록이 모여 큰 성장이 됩니다.\nTIL은 Frontend Fundamentals Discussion에 여러분의 GitHub 계정으로 저장돼요.\n하루에 한 줄씩, 함께 성장해봐요.",
@@ -127,7 +128,7 @@ const DEFAULT_CONFIG = {
127128
padding: 20
128129
};
129130

130-
export function calculateEditorHeight(
131+
function calculateEditorHeight(
131132
content: string | undefined,
132133
config?: {
133134
minHeight?: number;

0 commit comments

Comments
 (0)