Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

composer / draft-area not getting focus after click in command #3493

Closed
adbenitez opened this issue Nov 7, 2023 · 2 comments · Fixed by #3548
Closed

composer / draft-area not getting focus after click in command #3493

adbenitez opened this issue Nov 7, 2023 · 2 comments · Fixed by #3548
Labels
bug Something isn't working

Comments

@adbenitez
Copy link
Member

if I click a command, the draft is set to the command, then I press the shortcut to send message, instead of sending, I get asked if I want to replace current draft, it seems the "send message shortcut" is actually triggering the action of clicking the command again, that is: the command I just clicked has the focus, and hitting enter is triggering click

WARNING: to reproduce you have to have empty composer/draft, if you already have a draft, after clicking a command you get asked to replace current draft and then the composer is focused BUT focus is at the beginning not at the end of the text

  • Operating System (Linux/Mac/Windows/iOS/Android): Linux
  • Delta Chat Version: 1.40.3
@adbenitez adbenitez added the bug Something isn't working label Nov 7, 2023
@Simon-Laux
Copy link
Member

Your description is weird and hard to understand:

First Bug:

Expected:
after clicking /BotCommandSuggestion the composer should be focused again (at the end of text) so that the shortcut for sending (cmd/ctrl+enter) works

Actual:
after clicking /BotCommandSuggestion the composer has lost focus and the shortcut for sending clicks the bot command suggestion again which is somehow invisibly focused instead.

Second Bug:

Replacing draft focuses the composer again, but cusor is at start of text, where it should be at the end of the text.

@Simon-Laux
Copy link
Member

probably same draft loading race as in #3495 could cause this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants