Skip to content

Commit 7887c20

Browse files
author
Dylan Zhang
committed
comment
1 parent 55cc27b commit 7887c20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/components/Terminal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ const Terminal = () => {
88
const inputRef = useRef<HTMLInputElement>(null);
99
const router = useRouter();
1010

11-
// Automatically focus and move cursor to the end
11+
// Automatically select the end of the input as the custom
12+
// cursor only works at the end of the input.
1213
const setInputEnd = () => {
1314
if (inputRef.current) {
1415
const len = inputRef.current.value.length;

0 commit comments

Comments
 (0)