(direction)
| 134 | // Try to extend the selection by one character in direction. Return positive, negative or 0, |
| 135 | // indicating whether the selection got bigger, or smaller, or is unchanged. |
| 136 | extendByOneCharacter(direction) { |
| 137 | const length = this.selection.toString().length; |
| 138 | this.selection.modify("extend", direction, character); |
| 139 | return this.selection.toString().length - length; |
| 140 | } |
| 141 | |
| 142 | // Get the direction of the selection. The selection is "forward" if the focus is at or after the |
| 143 | // anchor, and "backward" otherwise. |
no outgoing calls
no test coverage detected