diff --git a/src/App.tsx b/src/App.tsx
index e775e89d2..b37109a35 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -153,7 +153,10 @@ function App() {
>
format
*/}
-
+
({
setIsShiftDown: s.setIsShiftDown,
}))
- const keyName = 'CapsLock' // TODO #32 should be shift, but shift conflicts with the editor's use of the shift key atm.
+ const keyName = 'Shift'
useEffect(() => {
const handleKeyDown = (event: KeyboardEvent) =>
event.key === keyName && setIsShiftDown(true)
diff --git a/src/hooks/useSetCursor.ts b/src/hooks/useSetCursor.ts
index 08a591189..ee2fd374e 100644
--- a/src/hooks/useSetCursor.ts
+++ b/src/hooks/useSetCursor.ts
@@ -11,9 +11,5 @@ export function useSetCursor(sourceRange: Range) {
? [...selectionRanges, sourceRange]
: [sourceRange]
setCursor(ranges)
- const element: HTMLDivElement | null = document.querySelector('.cm-content')
- if (element) {
- element.focus()
- }
}
}
diff --git a/src/index.css b/src/index.css
index c8a551992..a49ca8788 100644
--- a/src/index.css
+++ b/src/index.css
@@ -17,3 +17,12 @@ code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
+
+
+#code-mirror-override .cm-focused .cm-cursor {
+ border-left: 1.2px solid black;
+}
+#code-mirror-override .cm-cursor {
+ display: block;
+ border-left: 5px solid #0084e2;
+}