keyboard shortcut ctrl+q is recognized as ctrl+c #15036

Closed
opened 2026-01-31 04:26:39 +00:00 by claunia · 9 comments
Owner

Originally created by @LqkUWp on GitHub (Sep 1, 2021).

Windows Terminal version (or Windows build number)

10.0.19043.0, 1.9.1942.0

Other Software

powershell 7.1.4
cmd

Steps to reproduce

after openning one of those softwares in wt, do one entry from the list below.

  • hit Ctrl+q
  • hit Ctrl+q after hitting Alt+Shift+?

Expected Behavior

  • for the former, show ^Q or just nothing
  • for the latter, show info about Ctrl+q

Actual Behavior

  • for the former, the same 'break' behavior as Ctrl+c
  • for the latter, the info about Ctrl+c is printed out

Complement

  • i did not bind Ctrl+q to anything in setting.json or psreadline.
  • in cmd and pwsh themselves' terminal, i get nothing after hitting Ctrl+q.
Originally created by @LqkUWp on GitHub (Sep 1, 2021). ### Windows Terminal version (or Windows build number) 10.0.19043.0, 1.9.1942.0 ### Other Software powershell 7.1.4 cmd ### Steps to reproduce after openning one of those softwares in wt, do one entry from the list below. * hit `Ctrl`+`q` * hit `Ctrl`+`q` after hitting `Alt`+`Shift`+`?` ### Expected Behavior * for the former, show `^Q` or just nothing * for the latter, show info about `Ctrl`+`q` ### Actual Behavior * for the former, the same 'break' behavior as `Ctrl`+`c` * for the latter, the info about `Ctrl`+`c` is printed out ### Complement * i did not bind `Ctrl`+`q` to anything in `setting.json` or `psreadline`. * in cmd and pwsh themselves' terminal, i get nothing after hitting `Ctrl`+`q`.
claunia added the Needs-TriageResolution-ExternalNeeds-Tag-Fix labels 2026-01-31 04:26:39 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Sep 1, 2021):

image
image

Weird. Could you share your whole settings.json? There might be something we missed in there.

You might also try reproing this with the Debug Tap and sending us a screenshot. That would help see if the key is getting sent.

@zadjii-msft commented on GitHub (Sep 1, 2021): ![image](https://user-images.githubusercontent.com/18356694/131677728-1c6f1990-8231-477e-9d62-3462a4ecd50c.png) ![image](https://user-images.githubusercontent.com/18356694/131677797-625e6830-a622-4dad-8256-2104477a7832.png) Weird. Could you share your whole `settings.json`? There might be something we missed in there. You might also try reproing this with the [Debug Tap](https://github.com/microsoft/terminal/wiki/Enabling-the-debug-tap) and sending us a screenshot. That would help see if the key is getting sent.
Author
Owner

@LqkUWp commented on GitHub (Sep 1, 2021):

here is my settings.json and screenshots of debug tab
left
right

in debug tab, after hitting Ctrl+q, the left pane is

PS C:\>
PS C:\> ^C
PS C:\>

and the right pane is

3;28;13;1;0;1_␛[13;28;13;0;0;1_␍␊PS␣C:\>␣␛[13;28;13;1;0;1_␛[13;28;13;0;0;1_␍␊PS␣C:\>␣␛[17;29;0;1;8;1_␛[17;29;0;1;8;1_␛[67;46;3;1;8;1_␛[67;46;3;0;8;1_␛[?25l␛[91m^C␛[m␍␊PS␣C:\>␣␛[?25h␛[17;29;0;0;0;1_␛[17;29;0;0;0;1_␛[17;29;0;0;0;1_

BTW, i need to try several times to open debug tab. after i click "+" with both alt's holded, wt often crashes.

@LqkUWp commented on GitHub (Sep 1, 2021): here is my [settings.json](https://github.com/microsoft/terminal/files/7092865/settings.txt) and screenshots of debug tab ![left](https://user-images.githubusercontent.com/28478572/131711243-7047a578-ea10-4997-a436-99fe0a5dce6b.PNG) ![right](https://user-images.githubusercontent.com/28478572/131711257-a606e77c-7eab-4b0e-ba0c-69c77ef96b9d.PNG) in debug tab, after hitting `Ctrl`+`q`, the left pane is ``` PS C:\> PS C:\> ^C PS C:\> ``` and the right pane is ``` 3;28;13;1;0;1_␛[13;28;13;0;0;1_␍␊PS␣C:\>␣␛[13;28;13;1;0;1_␛[13;28;13;0;0;1_␍␊PS␣C:\>␣␛[17;29;0;1;8;1_␛[17;29;0;1;8;1_␛[67;46;3;1;8;1_␛[67;46;3;0;8;1_␛[?25l␛[91m^C␛[m␍␊PS␣C:\>␣␛[?25h␛[17;29;0;0;0;1_␛[17;29;0;0;0;1_␛[17;29;0;0;0;1_ ``` BTW, i need to try several times to open debug tab. after i click "+" with both `alt`'s holded, wt often crashes.
Author
Owner

@elsaco commented on GitHub (Sep 2, 2021):

Please try a newer version of Windows Terminal. With version 1.10.2383.0 the ctrl+q is still unbound but looking at the command palette this key combination has no assignment. It does for other contexts. Enter ctrl+shift+p to toggle command palette. There are more unbound key combinations, i.e. alt+q:

PS C:\Users\Tux>
Ctrl+q: Key is unbound

ctrl+c working as expected:
PS C:\Users\Tux>
Ctrl+c: CopyOrCancelLine - Either copy selected text to the clipboard, or if no text is selected, cancel editing the line with CancelLine.

PS C:\Users\Tux>
Alt+q: Key is unbound

@elsaco commented on GitHub (Sep 2, 2021): Please try a newer version of Windows Terminal. With version 1.10.2383.0 the ctrl+q is still unbound but looking at the command palette this key combination has no assignment. It does for other contexts. Enter ctrl+shift+p to toggle command palette. There are more unbound key combinations, i.e. alt+q: PS C:\Users\Tux> Ctrl+q: Key is unbound ctrl+c working as expected: PS C:\Users\Tux> Ctrl+c: CopyOrCancelLine - Either copy selected text to the clipboard, or if no text is selected, cancel editing the line with CancelLine. PS C:\Users\Tux> Alt+q: Key is unbound
Author
Owner

@zadjii-msft commented on GitHub (Sep 14, 2021):

image

  • ␛[17;29;0;1;8;1_
    • Vkey=17=VK_CONTROL
    • KeyDown=1= key down
    • dwControlKeyState=8=LEFT_CTRL_PRESSED
  • ␛[17;29;0;1;8;1_
    • same as above. Weird.
  • ␛[67;46;3;1;8;1_
    • Vkey=67=0x43=C key
      • WHAT?? That doesn't make any sense
    • KeyDown=1= key down
    • dwControlKeyState=8=LEFT_CTRL_PRESSED
  • ␛[67;46;3;0;8;1_
    • same as above but key up

So the terminal definitely thinks that's a ctrl+c. What keyboard layout are you using?

@zadjii-msft commented on GitHub (Sep 14, 2021): ![image](https://user-images.githubusercontent.com/18356694/133308826-29aadb50-6a19-4aed-bdda-18b760900bbe.png) * `␛[17;29;0;1;8;1_` - Vkey=17=`VK_CONTROL` - KeyDown=1= key down - dwControlKeyState=8=`LEFT_CTRL_PRESSED` * `␛[17;29;0;1;8;1_` - same as above. Weird. * `␛[67;46;3;1;8;1_` - Vkey=67=0x43=C key - **WHAT**?? That doesn't make any sense - KeyDown=1= key down - dwControlKeyState=8=`LEFT_CTRL_PRESSED` * `␛[67;46;3;0;8;1_` - same as above but key up So the terminal definitely thinks that's a <kbd>ctrl+c</kbd>. What keyboard layout are you using?
Author
Owner

@ghost commented on GitHub (Sep 18, 2021):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Sep 18, 2021): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Author
Owner

@zadjii-msft commented on GitHub (Sep 22, 2021):

@LqkUWp What keyboard layout are you using?

@zadjii-msft commented on GitHub (Sep 22, 2021): @LqkUWp What keyboard layout are you using?
Author
Owner

@ghost commented on GitHub (Sep 26, 2021):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Sep 26, 2021): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Author
Owner

@LqkUWp commented on GitHub (Nov 2, 2021):

sorry for late replay. US QWERTY layout, and my system display language is Chinese.
BTW, with current wt v1.11.2921.0, the bug is gone and here is the debug tap of ctrl+q
image

@LqkUWp commented on GitHub (Nov 2, 2021): sorry for late replay. US QWERTY layout, and my system display language is Chinese. BTW, with current wt v1.11.2921.0, the bug is gone and here is the debug tap of `ctrl`+`q` ![image](https://user-images.githubusercontent.com/28478572/139808835-02ca419d-a45e-4e94-9dda-b772889fd1f2.png)
Author
Owner

@LqkUWp commented on GitHub (May 31, 2022):

i finally realize that ctrl q is recognized as a shortcut to some application, e.g. QTranslate in my case, and ctrl c is produced by that application.

@LqkUWp commented on GitHub (May 31, 2022): i finally realize that `ctrl` `q` is recognized as a shortcut to some application, e.g. QTranslate in my case, and `ctrl` `c` is produced by that application.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15036