(code, offset)
| 170 | this.field = ("field" in dictionary) ? dictionary.field: false; |
| 171 | } |
| 172 | onCursorAfter(code, offset) { |
| 173 | var selectionMin, selectionMax, scrollerMin, scrollerMax, dx, dy; |
| 174 | if (offset < 0) |
| 175 | offset = 0; |
| 176 | if (shiftKey) { |
| 177 | if (offset <= this.cursorAnchor) |
| 178 | code.select(offset, this.cursorAnchor - offset); |
| 179 | else |
| 180 | code.select(this.cursorAnchor, offset - this.cursorAnchor); |
| 181 | this.cursorOffset = offset; |
| 182 | } |
| 183 | else |
| 184 | code.select(offset, 0) |
| 185 | this.onSelected(code); |
| 186 | } |
| 187 | onCursorBefore(code, sign) { |
| 188 | if (shiftKey) { |
| 189 | if (this.cursorOffset == null) |
no test coverage detected