Fix up/down not working with cursor in @word

In the composer, when the text cursor was inside a word starting
with a @ but not matching any username (thus the completion UI being
invisible), pressing up/down arrow would not do anything instead of
going to the prev/next line.
This commit is contained in:
miruka 2020-09-01 14:27:28 -04:00
parent 8b37ca2524
commit 8d61826887
2 changed files with 1 additions and 4 deletions
TODO.md
src/gui/Pages/Chat/Composer

View File

@ -3,10 +3,7 @@
- handle invalid access token
- If an account is gone from the user's config, discard UI state last page
- room A-Z sorting
- up/down doesn't work in the middle of a @word for which autocompletion isn't
open because no matches
- filter > enter > room list is always scrolled to top
- change profile → post in room → message shows as old profile
- session list: prevent tab-focusing the delegates
- refresh server list button

View File

@ -42,7 +42,7 @@ Rectangle {
MessageArea {
id: messageArea
autoCompletionOpen: userCompletion.open
autoCompletionOpen: userCompletion.open && userCompletion.count
usersCompleted: userCompletion.usersCompleted
onAutoCompletePrevious: userCompletion.previous()