MacOS – How to prevent Cmd-Q from typing “q” in the new foreground app

applicationskeybindingskeyboardmacosshortcut

My background app (the one that gets activated when the current app quits) is some text editor. When I use the CmdQ shortcut to quit it and immediately afterwards let go of only the Cmd key, the text editor types a q character.

Of course I normally don't intentionally keep Q pressed. While using the Quartz keyboard layout I never even noticed this, but when I changed to the Dvorak layout, I occasionally saw this happen (probably because of the location of Q on the keyboard). It happens with both layouts though.

I'm pretty sure it's not a problem with specifically my Mac (EDIT: It only happens with my Logitech keyboard). It's quiet annoying, especially while coding since I quit the developing app a lot and the q in my source code makes it not compile anymore.

My questions are:

  1. Does this only happen on my Mac? Can someone test this? It only happens with the Logitech keyboard.

  2. How can I prevent this from happening? (other than always paying attention to let go of Q before Cmd)

  3. Why is this even happening? I don't think it's supposed to be like this.

Best Answer

  1. Tested and mine doesn't do this.
  2. Try to turn off key repeat: (mine below is not off)

enter image description here

  1. Maybe you have a non-Apple keyboard with anti-ghosting?