autofocus, exclude line numbers from selection

This commit is contained in:
Luck
2021-03-27 21:41:08 +00:00
parent 5674f0c8c8
commit 5aaf6e861f
2 changed files with 3 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ export default function EditorTextArea({ code, setCode, language, fontSize }) {
padding={10}
size={fontSize}
textareaId='code-area'
autoFocus={true}
/>
</EditorPrismStyle>
)
@@ -50,5 +51,6 @@ const StyledReactEditor = styled(ReactEditor)`
text-align: right;
width: 40px;
font-weight: 100;
user-select: none;
}
`;