auto focus message field after anonymous user has entered nickname

This commit is contained in:
axolotle 2025-05-12 14:00:55 +02:00 committed by John Livingston
parent ca13d237a3
commit 3bc8d2466b

View File

@ -1,4 +1,5 @@
// SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/> // SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
// SPDX-FileCopyrightText: 2025 Nicolas Chesnais <https://autre.space>
// //
// SPDX-License-Identifier: AGPL-3.0-only // SPDX-License-Identifier: AGPL-3.0-only
@ -22,6 +23,7 @@ async function setNickname (ev, model) {
_converse.api.trigger('livechatViewerModeSetNickname', model, nick, { _converse.api.trigger('livechatViewerModeSetNickname', model, nick, {
synchronous: true synchronous: true
}) })
document.querySelector('.chat-textarea')?.focus()
} }
class SlowMode extends CustomElement { class SlowMode extends CustomElement {