(ch)
| 61 | } |
| 62 | |
| 63 | append(ch) { |
| 64 | let { cursor, input } = this.state; |
| 65 | this.input = `${input}`.slice(0, cursor) + ch + `${input}`.slice(cursor); |
| 66 | this.moveCursor(String(ch).length); |
| 67 | this.render(); |
| 68 | } |
| 69 | |
| 70 | insert(str) { |
| 71 | this.append(str); |
no test coverage detected