Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
feat : TextArea Tab character input
Browse files Browse the repository at this point in the history
  • Loading branch information
kasterra committed May 29, 2024
1 parent 263b631 commit 7290c14
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/components/Input/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ const TextArea = ({
width: width ? width : undefined,
height: height ? height : undefined,
}}
onKeyDown={(e) => {
if (e.key === "Tab") {
e.preventDefault();
(e.currentTarget as HTMLTextAreaElement).value += "\t";
}
}}
/>
{description?.length && (
<span className={styles.description}>{description}</span>
Expand Down

0 comments on commit 7290c14

Please sign in to comment.