{"issue":{"created_at":"2011-11-26T19:46:28Z","state":"closed","updated_at":"2011-11-27T13:50:52Z","user":{"gravatar_id":"ed6583386f2b2d56e1b5eb2ee236da39","id":42374,"url":"https://api.github.com/users/nicknotfound","login":"nicknotfound","avatar_url":"https://secure.gravatar.com/avatar/ed6583386f2b2d56e1b5eb2ee236da39?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":0,"body":"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.)\r\n\r\nI 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.\r\n\r\nThis feature is useful for selecting large sections of large documents (say, selecting 300 lines of a 900-line document).\r\n\r\nThanks again for such an awesome editor!","assignee":null,"id":2356682,"number":255,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"title":"Shift+click select doesn't work in readOnly mode","closed_at":"2011-11-27T13:50:52Z","html_url":"https://github.com/marijnh/CodeMirror2/issues/255","milestone":null,"url":"https://api.github.com/repos/marijnh/CodeMirror2/issues/255"},"action":"closed"}