(code)
| 107 | this.onSelected(code); |
| 108 | } |
| 109 | doUndo(code) { |
| 110 | if (this.historyIndex == this.history.length) |
| 111 | this.history.push(new CodeState(code)); |
| 112 | this.historyIndex--; |
| 113 | var state = this.history[this.historyIndex]; |
| 114 | code.string = state.string; |
| 115 | code.select(state.selectionOffset, state.selectionLength); |
| 116 | this.insertionOffset = -1; |
| 117 | this.onEdited(code); |
| 118 | this.onSelected(code); |
| 119 | this.onReveal(code); |
| 120 | } |
| 121 | filterKey(code, key) { |
| 122 | if (!key) return null; |
| 123 | var c = key.charCodeAt(0); |
nothing calls this directly
no test coverage detected