()
| 216 | |
| 217 | // Scroll the focus into view. |
| 218 | scrollIntoView() { |
| 219 | if (this.selection.type !== "None") { |
| 220 | const elementWithFocus = DomUtils.getElementWithFocus( |
| 221 | this.selection, |
| 222 | this.getDirection() === backward, |
| 223 | ); |
| 224 | if (elementWithFocus) return Scroller.scrollIntoView(elementWithFocus); |
| 225 | } |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | class VisualMode extends KeyHandlerMode { |
no test coverage detected