Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot execute multiple keyboard shortcuts with the control key held down #3701

Open
TheMejmun opened this issue Mar 19, 2025 · 1 comment
Open

Comments

@TheMejmun
Copy link

It seems that I have to release the Control key after Ctrl+S, before being able to use another Ctrl+Key shortcut. This seems to happen only if the first command is Ctrl+S, but regardless of what command comes after.

Observed behavior:

Pressing Ctrl+S, then Ctrl+Q saves the file, then writes a q at the cursor position, if the Control key is not released between both commands.

Expected behavior:

Pressing Ctrl+S, then Ctrl+Q should save then exit, regardless of whether the Control key was released or not.

@niten94
Copy link
Contributor

niten94 commented Mar 19, 2025

What OS and terminal do you use? Is q entered in the command bar if you press Ctrl+E then Ctrl+Q, as an example?

The Control key was detected (can be checked using > raw) when I tested with the terminal emulators below:

  • st
  • Termux - keys pressed using scrcpy when testing
  • xterm
  • Command Prompt (conhost.exe)
  • Windows Terminal

I was also able to move the cursor between numbers in # 111 222 333. Ctrl+LeftArrow was detected, when I pressed the left arrow key after pressing Ctrl+RightArrow then only held down the Control key. The results were the same with the programs below (shells):

  • busybox ash
  • bash - uses readline like a lot of other programs

Pressing Ctrl+S, then Ctrl+Q should save then exit, regardless of whether the Control key was released or not.

I do not think the Control key should be detected when released. I think text is usually expeced to be entered when no modifier keys are pressed down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants