tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

Shortcuts

Open auchri opened this issue 9 years ago • 185 comments

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)

auchri avatar Sep 04 '15 09:09 auchri

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 avatar Sep 04 '15 13:09 ralesk

@ralesk Scrolling through the history with page up/page down works for me

auchri avatar Sep 04 '15 13:09 auchri

I know, I missed the word "only" there. My problem is the way the arrows work.

ralesk avatar Sep 04 '15 13:09 ralesk

Please make it configurable: some people do not use classical keyboard layout (think dvorak, bépo, colemark etc…)

Geobert avatar Sep 04 '15 19:09 Geobert

@Geobert thanks, added it to the list :)

auchri avatar Sep 04 '15 19:09 auchri

[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 :)

xander13th avatar Sep 20 '15 15:09 xander13th

how is the progress on this issue? any way i could help?

tostiheld avatar Nov 17 '15 15:11 tostiheld

:+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 :)

poxin13 avatar Jan 08 '16 19:01 poxin13

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?

terryaney avatar Feb 24 '16 18:02 terryaney

Ctrl + F searches the current chat, Esc closes the current chat and focuses the search all box.

Walkman100 avatar Feb 24 '16 19:02 Walkman100

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.

erisdev avatar Mar 06 '16 22:03 erisdev

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

Walkman100 avatar Mar 07 '16 02:03 Walkman100

Why don't also letting the user to change the keys that trigger the shortcuts?

damaru2 avatar Mar 11 '16 16:03 damaru2

@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.

erisdev avatar Mar 13 '16 22:03 erisdev

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.

nicho90 avatar Apr 15 '16 12:04 nicho90

Insert last sent message into the text field with CTRL + Up

Like in command line? But what about quick edit?

toxsedyshev avatar Apr 19 '16 17:04 toxsedyshev

Thank you @auchri! 👍

nicho90 avatar Apr 19 '16 17:04 nicho90

@toxsedyshev maybe edit if allowed, and just insert if can't edit?

stek29 avatar Apr 19 '16 18:04 stek29

@stek29 In that case, how to insert if edit allowed? :) No, I think there should be two separate commands.

toxsedyshev avatar Apr 19 '16 18:04 toxsedyshev

Ctrl + L should lock the telegram (as it does right now) and minimize to the tray, that would be an awesome feature

LeonelF avatar Apr 20 '16 14:04 LeonelF

@LeonelF Use Ctrl+L Ctrl+W :)

john-preston avatar Apr 20 '16 14:04 john-preston

@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 avatar Apr 20 '16 15:04 LeonelF

@LeonelF I don't :)

toxsedyshev avatar Apr 20 '16 15:04 toxsedyshev

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!)

Walkman100 avatar Apr 22 '16 12:04 Walkman100

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:

auchri avatar Apr 22 '16 12:04 auchri

@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 avatar Apr 22 '16 13:04 LeonelF

@LeonelF No aggregation, sorry.

john-preston avatar Apr 22 '16 15:04 john-preston

@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? :)

LeonelF avatar Apr 22 '16 15:04 LeonelF

Open emoji panel when pressing TAB in text field

Should I make a PR for this one? I already implemented it here.

stek29 avatar May 10 '16 21:05 stek29

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.

ralesk avatar May 11 '16 08:05 ralesk