()
| 599 | } |
| 600 | |
| 601 | giveFocus(): boolean { |
| 602 | if (this.searchAtoms && globalStore.get(this.searchAtoms.isOpen)) { |
| 603 | console.log("search is open, not giving focus"); |
| 604 | return true; |
| 605 | } |
| 606 | const termMode = globalStore.get(this.termMode); |
| 607 | if (termMode == "term") { |
| 608 | if (this.termRef?.current?.terminal) { |
| 609 | this.termRef.current.terminal.focus(); |
| 610 | return true; |
| 611 | } |
| 612 | } |
| 613 | return false; |
| 614 | } |
| 615 | |
| 616 | keyDownHandler(waveEvent: WaveKeyboardEvent): boolean { |
| 617 | if (keyutil.checkKeyPressed(waveEvent, "Ctrl:r")) { |
no test coverage detected