-
-
Notifications
You must be signed in to change notification settings - Fork 827
Add keyboard shortcut to close the current conversation #5253
Conversation
Given Ctrl+. being right panel, Ctrl+, feels like it should be left Panel. Chrome has |
I agree that |
How do you feel about |
I'd expect much smarter behaviour there then, where it closes the active modal first, if one is open otherwise "closes the room" (goes home) |
I think that is a bit out of scope for my meager JavaScript knowledge. If you think that is necessary I would suggest that I close this PR and create an issue in the tracker. |
Well if you want it to be |
Much better, couple of nits: On Mac Ctrl is rarely used, in that scenario Cmd should probably be used instead, we have The copy could probably be better as it'd apply to more than just conversations, e.g Community Views too. Should be more general, maybe being more about where you're going i.e Home. |
Think I found a fix for that.
What do you mean by copy? |
Text - see https://en.wikipedia.org/wiki/Copy_(written) |
Yeah, I could have guessed that 🤦 These are some suggestions from the top of my mind:
|
The latter seems sane to me |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code wise it looks sane, I'd consider having it close all open Modal too otherwise the user might feel like its broken if they have Settings open
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just leaving a checkmark so github stops being confused and can instead be differently confused
Signed-off-by: Heiko Carrasco <[email protected]>
I added this feature in 40650bb but it only works after a user refocused the view (at least in my browser). This also happens with the |
Signed-off-by: Heiko Carrasco <[email protected]>
@miterion in general, please avoid force-pushing as it makes review harder. |
Will do in the future, sorry for the fuss |
I personally prefer to not have any conversation open if I am not currently chatting with a user or a room, since it might lead to accidental "reading" a message without me noticing it. Many messengers like telegram and Signal support this by allowing the user to close the current conversation and showing an empty panel instead. Element web does something similarly on the first login where it just shows a welcome screen. This PR adds a keyboard shortcut to trigger showing this welcome screen without needing to login again or manually navigating to the
#/home
page.I chose the
Ctrl+,
here quite arbitrarily, feel free to change it to something different if you like.The new shortcut in the overview: