tdesktop
tdesktop copied to clipboard
Shortcuts
The goal of this issue is to add the following shortcuts:
Usage
- [x] Lock telegram with CTRL + L
- [ ] Minimize to tray (CTRL + X if no text is selected, CMD + M on mac) or open it, if it's already minimized (see #748, global hotkey)
- [x] Completely close telegram (CTRL + Q, CTRL + W for windows)
- [ ] Open emoji panel when pressing TAB in text field
- [ ] Insert last sent message into the text field with CTRL + Up, on mac CMD + Up
- [ ] Mac Fullscreen-Mode CMD + CTRL + F (See #1904)
- [ ] Home when message editor empty: go to beginning of message history.
- [ ] End when message editor empty: go to end of message history.
- [ ] Shift + Click in selection mode (see 4 in #2404)
- [ ] Switch between two last chats (see #3303)
- [ ] Log Out (see #4251)
Voice messages
- [ ] CTRL + R to start recording
- [ ] CTRL + R to stop and send recording
- [ ] CTRL + shift (⇧) + R cancel recording
Emoji
- [ ] Tab (Single press) - Open Emoji menu
- [ ] Tab (In Emoji menu or ultraDoubleTabPressing) - Open Stickers menu
- [ ] Shift + ← (in Stickers menu, when focused at first sticker pack) - Open GIFs menu
- [ ] Shift + → (in GIFs menu) - Back to the stickers
- [ ] Shift + → (in Stickers menu) - Next sticker pack
- [ ] Shift + ← (in Stickers menu) - Previous sticker pack
- [ ] ↑↓ - Move Up / Move Down
- [ ] ←→ - Move Left / Move Right
- [ ] SPACE - Insert Emoji (no menu closing) / Send Sticker or GIF (and close menu)
- [ ] Esc - Close menu
(by @DaFri-Nochiterov at #1706)
Other
- [ ] Native back/forward mouse button support
- [ ] Shortcut to delete conversation
- [ ] Add option to disable shortcuts
- [ ] Shortcut to switch night mode
- [ ] And also add an overview which shortcuts are available (CTRL + F to search in current conversation, ...)
(Summary of #3163, #1904, #1706, #1688, #1330, #1244, #1139, #949, #873, #853, #830, #782, #703 and #78)
I guess a related thing would be to make up and down arrows work reliably (sometimes they do nothing, sometimes they scroll the chat history — I'd be perfectly fine if they only ever navigated in the text entry and history scrollback would be pageup/pagedown instead, kinda like in Skype)
@ralesk Scrolling through the history with page up/page down works for me
I know, I missed the word "only" there. My problem is the way the arrows work.
Please make it configurable: some people do not use classical keyboard layout (think dvorak, bépo, colemark etc…)
@Geobert thanks, added it to the list :)
[Minimize to tray] and [opening] can be implemented by one hotkey (see #748 for details). Anyway i'm happy to see hotkeys in to-do list :)
how is the progress on this issue? any way i could help?
:+1: Yes please! Running this on a chromebook within crouton, there is no taskbar in order to close - have to kill the app. Major PITA here :)
Are there any keyboard shortcuts? Specifically looking for a shortcut to get me to the 'search' field...otherwise, what is the 'keyboard' mechanism to start a chat with a new person?
Ctrl + F searches the current chat, Esc closes the current chat and focuses the search all box.
would be nice to have cmd-{
and cmd-}
switch between conversations on mac os x since those are standard issue shortcuts for switching between tabs here.
i realize ctrl-tab
and shift-ctrl-tab
are available but those are exceedingly difficult to type with only a left ctrl key.
Woah, Ctrl+Tab and Ctrl+Shift+Tab are really useful, thanks for sharing. On the contrary, I think those are nicer to press with the left ctrl key, because then I can keep my right hand on the mouse
Why don't also letting the user to change the keys that trigger the shortcuts?
@Walkman100 ymmv of course. i'm on a notebook so my trackpad's always in thumb's reach, but i usually keep both hands on the keyboard anyways unless i'm using an art program.
in my case, ctrl-tab
requires me to move my left hand far away from the home row position and shift-ctrl-tab
is worse. the standard mac keys can be done with only a slight movement of my right hand.
I was missing the CMD + CTRL + F
Shortcut for Fullscreen-Mode on MacOS, so added a new issue with [Feature-request for fullscreen-mode] #1904 before I saw there is already an issue about shortcuts. Feel free to add this shortcut to the list above and close my issue then.
Insert last sent message into the text field with CTRL + Up
Like in command line? But what about quick edit?
Thank you @auchri! 👍
@toxsedyshev maybe edit if allowed, and just insert if can't edit?
@stek29 In that case, how to insert if edit allowed? :) No, I think there should be two separate commands.
Ctrl + L should lock the telegram (as it does right now) and minimize to the tray, that would be an awesome feature
@LeonelF Use Ctrl+L Ctrl+W :)
@john-preston That is what I do, but it would be nice that Ctrl+L do both since you lock it there is no point to keep it on screen, I bet that almost every user that blocks telegram will minimize to tray after blocking it.
@LeonelF I don't :)
I've recently seen a shortcuts-custom.json
file in the tdata
folder, is this file used to customise commands? if so, @LeonelF you could add a rule to Ctrl+L to make it minimise, then see if Ctrl+L locks & minimises Telegram.
(As a side note: WOOT telegramdesktop
is FINALLY a GitHub org!)
I've recently seen a shortcuts-custom.json file in the tdata folder, is this file used to customise commands?
Yes.
(As a side note: WOOT telegramdesktop is FINALLY a GitHub org!)
:tada:
@Walkman100 I found the file and the command,
{ "command": "lock_telegram", "keys": "ctrl+l" },
But this doesn't seem to be able to aggregate two commands for one key combination, does it?
@LeonelF No aggregation, sorry.
@john-preston It would be needed to have a command like lock_and_close_telegram so I could assign it to a key combination. Can it be done? :)
Open emoji panel when pressing TAB in text field
Should I make a PR for this one? I already implemented it here.
I don't think a movement key should open anything. In normal GUI programs we activate things to open them.
This is also an accessibility thing (though I'm unsure if Orca or NVDA reads Telegram at the moment, for example): When you want to navigate, you expect not to trigger anything with the navigation. Actually I have the same grief with the hover-popup of the file and emoji menus, it makes it cumbersome (even for a non-handicapped person) to avoid triggering those popups accidentally.