From cfb455c0fe048ca75ce8da11707bfbb44d8c9fc3 Mon Sep 17 00:00:00 2001 From: dimden Date: Fri, 8 Sep 2023 16:41:43 +0300 Subject: [PATCH] focus search input of emoji picker on open --- manifest.json | 2 +- scripts/helpers.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index acf5a490..47181f56 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "Old Twitter Layout (2023)", "description": "__MSG_ext_description__", - "version": "1.7.8.3", + "version": "1.7.8.4", "manifest_version": 3, "homepage_url": "https://github.com/dimdenGD/OldTwitter", "background": { diff --git a/scripts/helpers.js b/scripts/helpers.js index 13ef870f..e502fc74 100644 --- a/scripts/helpers.js +++ b/scripts/helpers.js @@ -859,6 +859,7 @@ function createEmojiPicker(container, input, style = {}) { picker.database.close(); } document.addEventListener('click', oc); + picker.shadowRoot.querySelector("input.search").focus(); }, 100); return picker;