Skip to content

Commit

Permalink
hotfix for signeditor & arrows in wysiwyg
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Mar 24, 2024
1 parent 2ee21d5 commit 725eae8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/react/SignEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export default ({ handleInput, isWysiwyg, handleClick }: Props) => {
return <div
className='signs-editor-container'
onKeyDown={(e) => {
// arrow down/up, Enter to navigate between lines
if (isWysiwyg) return // todo
let { code } = e
if ((e.target as HTMLElement).matches('input') && e.key === 'Enter') code = 'ArrowDown'
if (code === 'ArrowDown' || code === 'ArrowUp') {
Expand Down

0 comments on commit 725eae8

Please sign in to comment.