Skip to content

Commit 65947dc

Browse files
committed
Focus on textarea on clicking Reply
1 parent 5516e5f commit 65947dc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ window.reply = async function reply (chatID) {
191191
const query = `?ok=${encodeURIComponent(checkImgURL)}&err=${encodeURIComponent(crossImgURL)}`;
192192
replyDialog.getElementsByTagName('form')[0].setAttribute('action', `${url}/${chatID}${query}`);
193193
replyDialog.showModal();
194+
replyDialog.querySelector('textarea').focus();
194195
};
195196

196197
window.loadReply = async function loadReply (callingBtn) {

0 commit comments

Comments
 (0)