Merge pull request #13227 from overleaf/td-history-keyboard-scroll-diff-viewer

History migration: Add tabindex to document diff viewer to allow keyboard scrolling

GitOrigin-RevId: 95a0be27fa710a4f81e5944432b6b108e529634f
This commit is contained in:
Tim Down 2023-06-05 12:41:36 +01:00 committed by Copybot
parent 6d4d643fd9
commit f57c87a2a8

View file

@ -24,6 +24,7 @@ import { inlineBackground } from '../../../source-editor/extensions/inline-backg
function extensions(): Extension[] {
return [
EditorView.editable.of(false),
EditorView.contentAttributes.of({ tabindex: '0' }),
lineNumbers(),
EditorView.lineWrapping,
indentUnit.of(' '), // TODO: Vary this by file type