From d3871d6864bbfcb3b939c0f47339010a682a2976 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Thu, 20 Feb 2025 14:40:58 -0500 Subject: [PATCH] editable-text: Forward onTextEntered() from input Fixes #5043 --- chrome/content/zotero/elements/editableText.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chrome/content/zotero/elements/editableText.js b/chrome/content/zotero/elements/editableText.js index 0fde6f6396..db4496efc7 100644 --- a/chrome/content/zotero/elements/editableText.js +++ b/chrome/content/zotero/elements/editableText.js @@ -312,6 +312,13 @@ delete autocompleteParams.popup; delete autocompleteParams.search; Object.assign(this._input, autocompleteParams); + + this._input.onTextEntered = () => { + if (this.onTextEntered) { + return this.onTextEntered(); + } + return false; + }; } // Set text direction automatically if user has enabled bidi utilities