(evt)
| 219 | } |
| 220 | |
| 221 | handleKeyDown(evt) { |
| 222 | if (this.main.inserter.handleKeyDown(evt)) { |
| 223 | return true; |
| 224 | } |
| 225 | if (this.shown && this.imagePlaced) { |
| 226 | if (evt.keyCode === KEYS.enter) { |
| 227 | this.finishPlacing(); |
| 228 | return true; |
| 229 | } else if (evt.keyCode === KEYS.esc) { |
| 230 | this.cancelPlacing(); |
| 231 | return true; |
| 232 | } |
| 233 | } else if (this.shown && evt.keyCode === KEYS.del) { |
| 234 | this.doClearArea(); |
| 235 | return true; |
| 236 | } else if (evt.keyCode === KEYS.a && evt.ctrlKey) { |
| 237 | this.selectAll(); |
| 238 | event.preventDefault(); |
| 239 | return true; |
| 240 | } else if (evt.keyCode === KEYS.esc && this.shown) { |
| 241 | this.hide(); |
| 242 | return true; |
| 243 | } |
| 244 | return false; |
| 245 | } |
| 246 | |
| 247 | handleMouseDown(event) { |
| 248 |
nothing calls this directly
no test coverage detected