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

View File

@@ -1,4 +1,4 @@
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital@0;1&display=swap'); @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100;0,400;0,700;1,100;1,400;1,700&display=swap');
html, html,
body { body {