(e3)
| 702 | (_a = this._selectionService) == null ? void 0 : _a.selectLines(e3, t3); |
| 703 | } |
| 704 | _keyDown(e3) { |
| 705 | if (this._keyDownHandled = false, this._keyDownSeen = true, this._customKeyEventHandler && false === this._customKeyEventHandler(e3)) return false; |
| 706 | const t3 = this.browser.isMac && this.options.macOptionIsMeta && e3.altKey; |
| 707 | if (!t3 && !this._compositionHelper.keydown(e3)) return this.options.scrollOnUserInput && this.buffer.ybase !== this.buffer.ydisp && this.scrollToBottom(), false; |
| 708 | t3 || "Dead" !== e3.key && "AltGraph" !== e3.key || (this._unprocessedDeadKey = true); |
| 709 | const i3 = (0, R.evaluateKeyboardEvent)(e3, this.coreService.decPrivateModes.applicationCursorKeys, this.browser.isMac, this.options.macOptionIsMeta); |
| 710 | if (this.updateCursorStyle(e3), 3 === i3.type || 2 === i3.type) { |
| 711 | const t4 = this.rows - 1; |
| 712 | return this.scrollLines(2 === i3.type ? -t4 : t4), this.cancel(e3, true); |
| 713 | } |
| 714 | return 1 === i3.type && this.selectAll(), !!this._isThirdLevelShift(this.browser, e3) || (i3.cancel && this.cancel(e3, true), !i3.key || !!(e3.key && !e3.ctrlKey && !e3.altKey && !e3.metaKey && 1 === e3.key.length && e3.key.charCodeAt(0) >= 65 && e3.key.charCodeAt(0) <= 90) || (this._unprocessedDeadKey ? (this._unprocessedDeadKey = false, true) : (i3.key !== D.C0.ETX && i3.key !== D.C0.CR || (this.textarea.value = ""), this._onKey.fire({ key: i3.key, domEvent: e3 }), this._showCursor(), this.coreService.triggerDataEvent(i3.key, true), !this.optionsService.rawOptions.screenReaderMode || e3.altKey || e3.ctrlKey ? this.cancel(e3, true) : void (this._keyDownHandled = true)))); |
| 715 | } |
| 716 | _isThirdLevelShift(e3, t3) { |
| 717 | const i3 = e3.isMac && !this.options.macOptionIsMeta && t3.altKey && !t3.ctrlKey && !t3.metaKey || e3.isWindows && t3.altKey && t3.ctrlKey && !t3.metaKey || e3.isWindows && t3.getModifierState("AltGraph"); |
| 718 | return "keypress" === t3.type ? i3 : i3 && (!t3.keyCode || t3.keyCode > 47); |
no test coverage detected