The goal of this issue is to add the following shortcuts:
(by @DaFri-Nochiterov at #1706)
(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.
Maybe Ctrl+Up
to edit last message and Ctrl+Down
to reply to last message?
@ralesk Quick edit by Up key is default behavior in all modern messengers like Skype, Slack, etc. Telegram is a messenger, first of all.
@toxsedyshev This completely ruins scrolling. I mean, in channels up/down
scrolls, but in normal chats - no. That ruins experience while using Telegam.
@Kondra007 came to this thread to say that! Edit message gonna be nice addition(for now we need to right click and Delete the message) and Ctrl+Up
seems OK hotkey for the action.
@toxsedyshev My reply was about the Tab key, sorry if that wasn't clear.
@Kondra007 @0x49D1 I side with @toxsedyshev on this one though, in other common messengers (Skype, Slack), even IRC clients (Quassel) page up and page down is what scrolls the chat history, up and down navigates inside the edit box, and it's very common that Up on an empty entry loads the previous comment for editing. This is what people are used to.
Ctrl+Up and Ctrl+Down could be used to access entry history — not editing, creating a new message with the same text; this might not be useful in Telegram, but also a fairly common feature of IRC clients for example. In slack, the Ctrl-ness can be switched with a setting.
Ctrl+Down for reply is entirely non-mnemonic to me.
@Kondra007 Yes, but who needs one-line scroll using "key up"? You have "page up", mouse wheel, search. That's why other messengers don't scroll by "key up" too.
@ralesk +1 about Ctrl+Down, who needs to reply to the last message with a quote? :)
@ralesk regarding "up" and "down":
Ctrl+Up
to edit, because you update your message which is already in chat.
Ctrl+Down
to reply, because you add new message below others (and it's reply, since simple message can be sent without hitting any shortcuts)
@toxsedyshev "who needs to reply to the last message with a quote?" It's really important in big groups where several dialogues may be present at once. Or just to express emotion on opinion (+1, -1 etc. since Telegram lacks of this by default)
Addendum (again from an accessibility view): _if_ the chat history bit will be made focusable, then it would be useful to navigate with up and down there, effectively selecting/highlighting (whatever you want to call it) a particular message, and then pressing a reply shortcut for example (Ctrl+R reply, Ctrl+F forward, anyone? Like in a mail client?) will be actually useful. Until then, Up/Down doing what they do now is kinda confusing and annoying to be honest
@Kondra007 if it's a reply to the last message, there's not too much need for the reply-ness :) Although I do understand that it fixes any ambiguity.
@ralesk Unfortunately, when you start replying to currently the last message in big chats, there may appear 1-5 more by the time you finish answering. Common case in big groups I think.
@Kondra007 Good point.
@Kondra007 you could just send a message and everybody understand that it's a reply for the last message. If you always reply with quotes, it makes chat unreadable, from my point.
@Kondra007 Yep, good point, but anyway it's unreadable when used for every reply...
@toxsedyshev No one suggests always making a reply, but still replies are very important in Telegram, since we have supergroups up to 5k.
That's only my personal opinion, of course.
In that case how to use it? If you want to reply to particular message with a quote but it's already not the last message :) Maybe several presses of Ctrl+Down?
No, you understood me wrong.
By the time you start replying, that particular message is the last one, but no one guarantees, that after finishing writing the message there won't be 1-5 another from other people and on different topic. See the difference? Just an obvious example:
A: Let's go for walk.
_You start writing "good idea, I wanted to do this since morning"_
B: By the way, did you see Sam posting shitty stickers here yesterday?
C: Yeah.
D: That's disgusting
E: Shall we ban him?
You: good idea, I wanted to do this since morning (just finished writing)
No, I understood you right. But you said "No one suggests always making a reply". If you don't reply to every message with a quote, one press of Ctrl+Down won't work. If you do - it makes chat unreadable.
Errrm..what? If you want to quickly start replying to the last message without ever touching your mouse, you can press Ctrl+Down
and start replying. However if you're sure you'll be understood correctly (see my example above), you may simply write a message without any replies.
What is more, replies allow to quickly scroll through the whole discussion on particular topic reading only relevant messages and automatically skipping irrelevant ones (since you can click on reply and watch that message and so on)
If you want to quickly start replying to the last message without ever touching your mouse, you can press Ctrl+Down and start replying.
Yep. But if you do it before starting to write your message, you can't cancel it from keyboard (eg. ESC) and it will make chat unreadable (flooded by unnecessary replies) if nobody sent any message while you were typing. I think, the best way is to reply after you finished typing your message by several presses of Ctrl+Down to select the message you wanted to reply, if it's already not the last one.
Or just maybe make it so if you're replying, first Escape
press removes "reply" from you message and second Escape
press exits from current chat.
Or both features: Esc to cancel reply and several Ctrl+Down to select what message reply to. When there are more than ~5 messages per minute (with different subjects) it's better to use first option, if less - second option.
That's nice, but I think it should be clearly explained to everyone if this idea goes live.
I still think direct navigation in the history and Ctrl+R for Reply would be a more logical behaviour :)
@auchri It appears "Insert last sent message into the text field with CTRL + Up, on mac CMD + Up" is now supported in the form of message editing. Or is this a different request?
I'm currently looking into implementing a few of these, no promises
Could you please do shortcut for hide/open Telegram Window? This hotkey exists in Skype and it is very handy for me.
@breakmt Ctrl+M
hides Telegram window.
@Kondra007 But doesn't open hidden window.
@stek29 No, it doesn't. But to open particular window, Ctrl+M
should be binded as "Open Telegram" globally in system, shouldn't it? I mean, you hide window with app-specific hotkey, but to open it, you use system-wide hotkey.
Since Skype is developed by Microsoft, they can make sure that their OS has a free shortcut for that action.
how can i change alignment ?
@Kondra007 I don't think that App should create system-wide shortcuts by itself. IMO Your OS should allow to bind some keys to specific app.
@stek29 But Windows doesn't offer such facilities (if anything, the only desktop environment with a centralised global shortcut editing system I've seen is KDE), so it's apps that have options to set this up to whatever shortcut you want. This is idiomatic on Windows, and goes back to at least the WinAmp era.
@ehsaneam There are no paragraph formatting facilities in Telegram as far as I'm aware.
@ralesk Then use other system which allows that :)
@Kondra007 @ralesk Try AutoHotkey :)
is there a list of all keyboard shorcuts somewhere?
@constantx Some are in the wiki. But a PR which adds a new file to the doc folder with all available shortcuts would be highly appreciated.
Is anyone experiencing ctrl+tab
opening up the Emoji window instead of cycling through chats?
P.S. How do you stylize those keyboard shortcuts in Markdown? :)
Any update on when the fullscreen shortcut will be added?
Any update on when the fullscreen shortcut will be added?
I see little point in a telegram-specific shortcut for this, just use your desktop's native hotkey for this (super+F in my case).
Well, that doesn't work. At least not on OS X(ctrl+cmd+f)
@beschoenen Did you try simply cmd+f as well? I'm not sure what the hotkey is, maybe you should check the docs.
But I don't think telegram should have a specific one, just avoid messing up each desktop's hotkey (that _may_ be the case on OS X, I'm not sure).
I think that the shortcut to start and stop recording voice messages would be very useful :)
@CarlosLopezES stop that spam please.
I disagree that Ctrl + W would mean “completely close” in Windows parlance, it means “close window” at best, and as such mostly equivalent to Alt + F4, and with a program that does stay resident in the tray, it shouldn't do more than hiding the window. Ctrl + Q is the quit shortcut, if anything, but it is rare that programs set it.
I'd like to also point out that Ctrl + X to hide the window is a very, very bad idea, certainly confusing to anyone who has never read about it, that something that usually just cuts text (and when nothing is selected, cuts nothing), has such a strange alternative, context sensitive behaviour. Chiming with my previous comment, hide window / minimise to tray should just be Ctrl + W.
Now that #2855 has been closed, please merge those requests into this.
Mentioning #2109 here because it is also about shortcuts, but more specifically the keyboard navigation in chat.
anyone know of a mac hotkey/shortcut for desktop app to search repos? cheers.
"search repos"?
@auchri sure, so in the app on the left hand side there is a list of local repositories, I'm looking for a shortcut/hotkey to search through these without manually clicking on the "filter repositories" search box at the top.
You are not talking about Telegram Desktop ^^
i think it would be nice to add ctrl + Arrow Up to editing previous wrote chat . it's getting annoying always when i want to navigate to top.
@secretcage was asked for a lot of times. There's a simple workaround btw -- just type something and then use arrows.
Can you merge #3163?
- <kbd>Home</kbd> when message editor empty: go to beginning of message history.
- <kbd>End</kbd> when message editor empty: go to end of message history.
ctrl+home and ctrl+end keys shall jump to the begin/end of the conversation history.
I thought that was a good idea as well @danger89. But then I realized those are already reserved for jumping to the beginning and end of the editor window. As this is default behavior for all editors (on GNU/Linux at least), it probably shouldn't be meddled with.
Home and End are a nice compromise for this behavior when the editor is empty, just like PgUp and PgDown scroll the messages when the editor is emtpy, and get their default behavior (scrolling the editor) when the editor has content.
@louwers You are right! Just home and end, only when the editor is empty (similar as the page up/down keys).
Any shortcut for calling emoji panel on OS X?
ctrl + shift + tab is not working anymore in OS X
Was it intentionally removed or is it a bug?
@rhnonose Works fine for me on macOS 10.12.4 with Telegram Desktop 1.0.34 alpha. Nothing changed regarding that key shortcut for a couple of years at least.
@john-preston my telegram says version 2.96.94323 Stable
Is the version disparity so large because of stable/alpha differences?
Checking for update says there's no newer version.
It stopped working a couple of days ago, maybe a week or two.
@rhnonose That's a different Telegram App.
@auchri appears so, thanks
@rhnonose You can try Telegram Desktop from https://desktop.telegram.org
CTRL + L does not work for me.
@WyRe What's your system? And please, create a separate issue for this (possible) bug.
How can I hide emoji panel on macosx? It's super annoying.
Already tried every shortcut mentioned here. No result.
@frizzby just click on button which opened it?
@auchri Could you add to the list the shortcut Shift + Delete
to show the delete confirmation popup with the mark already checked on Delete for ***
option?
I think it really makes sense with the usage of delete and shift + delete on various systems
Is there going to be a menu item that you can use to discover all the shortcut keys in Telegram? Many web apps have a popup that will show you keyboard hints.
@BoffinbraiN That suggestion probably deserves it's own issue.
I'll let @auchri decide on that.
The only keys I know of at the moment are Alt+Up/Down and Ctrl+Q/W/M. If there are several more that already exist, then perhaps it should be added as a separate feature since I'd never find them otherwise.
@BoffinbraiN you can view all shortcuts avialable now in Telegram Desktoptdata\shortcuts-default.json file, but I definitely agree with you with pop-up idea, and shortcut like Ctrl+? for showing it
Is there any known workaround to lock the voice record at moment? (without the need to keep mouse pressed). I see that we have a special location to implement the voice record start/stop on shortcut.cpp but nothing is there. This is very difficult to add? (just curiosity)
A shortcut like the MacOS app's cmd + k
would be SUPER useful (allowing us to switch to a specific chat more quickly)
Is there a way to make alt-f/b
work as ctrl-left/right
on Linux?
i imagine the easiest way to satisfy a lot of bugs/requests would be to have a hotkey section in settings? and maybe eventually evolve that into having some form of basic scripting to allow custom hotkey commands
@prototype99 there actually is one already: see tdata/shortcuts-custom.json
any support for mouse wheel clicks? just figure that would resolve a bug that was filed potentially
Having a shortcut for toggling Night Mode would be amazing.
I would like to have a shortcut for marking all chats as read.
please add the global show/hide interface shortcut key!!!!! friends and i have been waiting for such a long time. It's almost impossible to bear clicking icons on system tray when you are typing or coding.
@The-DevOps-Guy open a pull request
- Shortcut to delete conversation
Shortcut to delete multiple conversation also
Hello,
There is a plan for the END key
?
@auchri @stek29
Best,
Max
Oh God is this still a thing? I would love it
Surprised nobody have ever requested vim-style shortcuts, or navigation at least, h-l for switching between chat list and current chat, j-k for scrolling, / for searching, etc...
maybe
https://doc.qt.io/archives/qq/qq14-actioneditor.html
https://github.com/bjorn/tiled/commit/c1a48ad13b812d6531b372ec8295b19a769257d9
can help someone to create one pull request implementing custom user shortcuts allowing everyone to setup every shortcut they want.
Add this to the checklist:
ALT+ Enter
CTRL + SHIFT + Enter
Surprised nobody have ever requested vim-style shortcuts, or navigation at least, h-l for switching between chat list and current chat, j-k for scrolling, / for searching, etc...
CTRL + F
is just fine for searching. Besides, when the message box is in focus, this would not work, would it? 🤔
just saw a commit for scheduled messages getting CTRL + ENTER
🤔
Is scheduling gonna be used more than sending silent messages (messages without sound)?
Please do CTRL + SHIFT + ENTER
for sending silent messages. It would be more convenient to not disturb the other person, if you're gonna send a lot of messages.
what i do when i must send a lot of messages is write the wall of text and send a single message.
Please do
CTRL + SHIFT + ENTER
for sending silent messages. It would be more convenient to not disturb the other person, if you're gonna send a lot of messages.
@damnfella Now you can open the tdata/shortcuts-custom.json
file and write it there.
[
{
"command": "message_silently",
"keys": "ctrl+shift+enter"
}
]
@23rd what do you think about allow customize shortcuts with a gui editing that file? :)
Please do
CTRL + SHIFT + ENTER
for sending silent messages. It would be more convenient to not disturb the other person, if you're gonna send a lot of messages.@damnfella Now you can open the
tdata/shortcuts-custom.json
file and write it there.[ { "command": "message_silently", "keys": "ctrl+shift+enter" } ]
Is there any documentation on the available commands?
Is there any documentation on the available commands?
No, there is no documentation.
But you can take a look here.
what do you think about allow customize shortcuts with a gui editing that file? :)
I think most people use the default hotkey settings. So creating a GUI for editing hotkeys will take a lot of effort with minimal utility.
well it will allow close all tickets of "i want shortcut for xxx" :P and the one i want customizable shortcuts xd
I don't want to seem intrusive 😏but ~4.5 years have passed.. what about #748?
Is any chance to get it or should I lose a hope and unsubscribe from this topic?)
Can be helpful? qkeysequencewidget
just saw a commit for scheduled messages getting
CTRL + ENTER
🤔
Is scheduling gonna be used more than sending silent messages (messages without sound)?Please do
CTRL + SHIFT + ENTER
for sending silent messages. It would be more convenient to not disturb the other person, if you're gonna send a lot of messages.
I even thought that it could be like Ctrl + Enter
triggers menu:
Then you can navigate through it via arrow keys and press Enter
again.
Uh, Ctrl+Enter is line break, along with Shift+Enter. Please don't break people's muscle memory with putting Schedule Message on Ctrl+Enter.
I even thought that it could be like Ctrl + Enter triggers menu
@AlexWayfer I made a mistake by saying "ctrl+enter". That shortcut is used for new lines. (and has a toggle to change it for sending messages in the chat settings)
ALT+ENTER
could do it maybe.
Alt+Enter is (was?) commonly used for fullscreen.
I'm thinking maybe it doesn't need to be Enter.
@auchri Maybe add a link to https://github.com/telegramdesktop/tdesktop/wiki/Keyboard-Shortcuts to your top post so that people are informed of what shortcuts we already have.
I was previously using the macos version and the Cmd+K shortcut was really convenient for switching conversation. What is the equivalent with this client?
Hi, I reached here via #3007
I would like to know if the record-audio-without-long-press issue was resolved
Is there a shortcut for it now?
was it implemented in another version?
-------- Manjaro (Arch) Linux Desktop - v2.1.7
Voice messaging with keyboard would change my life for better.
i read the documentation somewhere in the telegram beta chat i think. if it is found, it would be nice to add that in the description here, right??
Hey there!
This issue will be automatically closed in 7 days if there would be no activity. We therefore assume that the user has lost interest or resolved the problem on their own.
Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.
Thanks!
any updates on the issue?
I just miss that you cannot control the popups with the keyboard which is a real usability issue.
Since i cannot edit 1st post, resume of shortcuts / request of shortcuts:
https://github.com/telegramdesktop/tdesktop/blob/dev/Telegram/SourceFiles/core/shortcuts.cpp#L330
Full list.
https://www.neowin.net/news/powertoys-025-out-with-many-fixes-video-conferencing-mute-utility-coming-next-week it will ship shortcuts editor
Tab (Single press) - Open Emoji menu
Tab (In Emoji menu or ultraDoubleTabPressing) - Open Stickers menu
Yikes, that goes against literally every single UI convention since the 80s! (And has accessibility implications) Please don't use Tab for this.
I think that implementing tab order would be really useful as long as there are not enough shortcuts, or there's a debate on which shortcuts should be implemented and how.
What are the shortcuts for:
Really waiting for CTRL + R to start recording
Most helpful comment
Please make it configurable: some people do not use classical keyboard layout (think dvorak, bépo, colemark etc…)