MCPcopy Index your code
hub / github.com/codeaashu/claude-code / _finalizeComposition

Method _finalizeComposition

src/server/web/public/terminal.js:1137–1151  ·  view source on GitHub ↗
(e3)

Source from the content-addressed store, hash-verified

1135 return 229 !== e3.keyCode || (this._handleAnyTextareaChanges(), false);
1136 }
1137 _finalizeComposition(e3) {
1138 if (this._compositionView.classList.remove("active"), this._isComposing = false, e3) {
1139 const e4 = { start: this._compositionPosition.start, end: this._compositionPosition.end };
1140 this._isSendingComposition = true, setTimeout((() => {
1141 if (this._isSendingComposition) {
1142 let t3;
1143 this._isSendingComposition = false, e4.start += this._dataAlreadySent.length, t3 = this._isComposing ? this._textarea.value.substring(e4.start, e4.end) : this._textarea.value.substring(e4.start), t3.length > 0 && this._coreService.triggerDataEvent(t3, true);
1144 }
1145 }), 0);
1146 } else {
1147 this._isSendingComposition = false;
1148 const e4 = this._textarea.value.substring(this._compositionPosition.start, this._compositionPosition.end);
1149 this._coreService.triggerDataEvent(e4, true);
1150 }
1151 }
1152 _handleAnyTextareaChanges() {
1153 const e3 = this._textarea.value;
1154 setTimeout((() => {

Callers 2

compositionendMethod · 0.80
keydownMethod · 0.80

Calls 1

triggerDataEventMethod · 0.80

Tested by

no test coverage detected