Keyboard focus on read-only text editors


I just noticed that apart from copying text, keyboard actions don’t work on read-only text editors. For example you can’t use arrow keys to scroll through the content. The caret also cannot be made visible.

This is different from what the CodeEditorComponent is doing: while you can’t edit the text, you can still use arrow keys to browse through the text, select text, and scroll the text when the text doesn’t fit in the component.

Is it possible to make read-only text editors behave in a similar way after calling setCaretVisible(true)?

Another suggestion, if the caret is not visible can you still enable any keys to move around (i.e. , , , , page up/down, home/end)?