marijnh/CodeMirror2 — Issue #255: Shift+click select doesn't work in readOnly mode
Author: nicknotfound
Created: 2011-11-26 19:46:28+00:00
State: open

When clicking in a `readOnly` editor, CodeMirror used to place the cursor, after which you could hold shift and click somewhere else in the document, and the text between the original cursor position and the click position would be selected. (This still works in edit mode but does not work anymore with the `readOnly` option set, though it did work fairly recently.)

I know that the cursor is now gone in `readOnly` mode, which I assume is what causes this to not work anymore, but another way that used to work (and still could, even without a visual cursor) is to drag-select at least one character, then shift-click elsewhere in the document.

This feature is useful for selecting large sections of large documents (say, selecting 300 lines of a 900-line document).

Thanks again for such an awesome editor!