Terminal displays "q^C" when pressing Ctrl+C (appeared after version 0.48)

Issue Description:

Since updating to the latest version, pressing the Ctrl+C key combination in the terminal displays “q^C” instead of just “^C” or no control characters at all. This issue did not exist before version 0.48 and started occurring after the update. The problem can be reproduced in both Windows and Linux environments, indicating that it may be an issue with the application itself rather than specific to an operating system.

Steps to Reproduce:

  1. Open the Cursor terminal

  2. Start executing any command or operation

  3. Press Ctrl+C to interrupt the operation

  4. Observe “q^C” being displayed instead of the expected behavior

Expected Behavior:

When pressing Ctrl+C, it should only display “^C” or not show any control characters according to terminal settings, but should not display an additional “q” character.

Actual Behavior:

When pressing Ctrl+C, “q^C” is displayed, where “q” is a character that should not appear.

System Information:

  • Cursor version: [Your current Cursor version]

  • Operating systems: Both Windows and Linux exhibit this issue

  • On Linux, attempted to use the stty -ctlecho command to disable control character echo, but the “q” character still appears

Additional Information:

This issue did not exist before version 0.48 and appeared after the update. The problem appears to be related to keyboard input processing, possibly the application incorrectly capturing the “q” key when capturing Ctrl+C.