-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Allow usage of Arrow Up and Arrow Down to edit more than just the most recent message #24317
base: dev
Are you sure you want to change the base?
Conversation
How to scroll the chat with the arrow keys then? 🤔 |
Yeah I see the issue. But I think both should be doable via keyboard. Maybe pgup and pgdown are already usable for scrolling chats? The current way to scroll with arrow keys is already a bit awkward, as every time you scroll up you start editing the last message you sent. Separating the scrolling and editing to different keys would be good. Alternatively, maybe we can use ctrl+shift or ctrl+alt to edit messages and have arrow keys just for scrolling? Any other suggestions? |
I think it makes no sense to scroll the chat if you're editing a message, you already have the same problem now that if you're on multiple rows it changes behaviour based on if you're on the top of the message or bottom, or in the middle. Removing the movement of the chat via the keys that are supposed to edit the message seems the best and more coherent option |
The UX of tdesktop will be much worse for me if scrolling with arrow keys is removed |
never said to remove it completely, just when editing a message, a momentary thing ps. I use almost exclusively arrows to scroll, but I find it annoying when I'm editing, since as you can guess, I want to edit, not scroll the chat to read it |
Message edit starts on arrow up, so you literally say to remove it |
no, I mean to remove the shortcut that it's just an arrow up to edit, if I want to scroll I want to scroll, not to edit, and having the same button for different things it's confusing and it will always do both things, an option could be added, or just change the buttons to something different |
Still personally I like the current behavior and it would be a bad thing to me if it's changed |
Binding up arrow to edit and scroll up at the same time should be considered bad UX. You might just want to scroll but you can't scroll without going to edit mode for the last message. When you're done scrolling and want to type a message, the input box is now an edit box for the last message. You have to press |
hello dude |
Pressing up currently allows you to edit the most recent message. However, there is no way to edit older messages this way.
This PR enables navigating messages to edit them by pressing the up or down key when the cursor is at the start/end of a message that is being edited.