autofocus textarea

This commit is contained in:
Swrup 2022-04-18 03:21:56 +02:00
parent 6963e068c8
commit a6fc9b4346
2 changed files with 5 additions and 1 deletions

View file

@ -19,7 +19,8 @@ let insert_quote el _event =
Format.sprintf "%s[>%s] " content emojid
else Format.sprintf "%s@\n[>%s] " content emojid
in
El.set_prop inner_html (Jstr.of_string new_content) textarea
El.set_prop inner_html (Jstr.of_string new_content) textarea;
El.set_has_focus true textarea
let () =
log "add inser_quote event on post links@\n";