DeepTutor icon indicating copy to clipboard operation
DeepTutor copied to clipboard

[Feature Request]:Preserve focus state after submitting a chat message.

Open Autumn0716 opened this issue 4 months ago • 1 comments

Do you need to file a feature request?

  • [x] I have searched the existing feature request and this feature request is not already filed.
  • [x] I believe this is a legitimate feature request, not just a question or bug.

Feature Request Description

Currently, when I submit/send a message in the chat box, the input will be cleared and sent to the Agent.But the focus state will be cleared too.

Also, I would like to maintain this focus state between switching tabs in the browser.

It's a diagram.

Image

Related Module

Frontend/Web

Use Case

When I send my first message to agent,I usually switch to another tabs(like command+]) because agents need to think about my question and give their answers. Then I return back our Deeptutor Web page(like command+[),I find that my focus state has been reset,I cannot input my new question quickly with my keyboard,because I must navigate my mouse to the chat box.

Additional Context

No response

Autumn0716 avatar Jul 25 '26 05:07 Autumn0716

Shipped on dev in e3ae2c3a (#720), which covers both halves of the request: the composer regains focus on the next animation frame after a successful send, and it is re-focused when you switch back to the tab if it was focused when you left. It will go out with the next release.

pancacake avatar Jul 29 '26 09:07 pancacake