getcursor / cursor

The AI Code Editor
https://cursor.com
25.19k stars 1.57k forks source link

Cannot Type @ Symbol on Norwegian Keyboard Layout in Cursor Composer (Windows) #2372

Open lrrrrr opened 20 hours ago

lrrrrr commented 20 hours ago

Description I am unable to type the @ symbol in Cursor when using the Composer feature on my Windows machine with a Norwegian keyboard layout. On this layout, the @ symbol is typed using Ctrl + Alt + 2. However, in the Composer, this key combination unexpectedly triggers a different action (tab switching), preventing me from entering the @ symbol once there is a second tab open.

Steps to Reproduce Set the keyboard layout to Norwegian on a Windows machine. Open Cursor and switch to the Composer feature. With only one tab open in Composer, attempt to type the @ symbol using Ctrl + Alt + 2 — this works as expected. Open a second tab in Composer. Attempt to type the @ symbol again using Ctrl + Alt + 2. Observe that the @ symbol is not inserted. Instead, the key combination switches tabs.

What I Have Tried

{
    "key": "ctrl+2",
    "command": "-workbench.action.focusEditorGroup2"
}

This had no effect.

{
    "key": "ctrl+2",
    "command": "noop"
}

This did not resolve the issue.

Expected Behavior The Ctrl + Alt + 2 combination should insert the @ symbol in Composer, regardless of the number of open tabs.

Actual Behavior When only one tab is open in Composer, Ctrl + Alt + 2 correctly inserts the @ symbol. However, when a second tab is opened, the same key combination switches tabs instead, making it impossible to type @.

System Information Operating System: Windows Cursor Version: 0.42.4 Keyboard Layout: Norwegian Feature Affected: Composer Additional Context This issue seems specific to keyboard layouts where Ctrl + Alt + 2 is used to type the @ symbol. It only occurs within the Composer feature and starts when a second tab is present, suggesting a conflict with the built-in tab-switching behavior in Composer.

Suggested Fix Consider prioritizing system keyboard input (e.g., Ctrl + Alt combinations for special characters) over internal keybindings within the Composer feature or allow for complete customization of these bindings in keybindings.json. Additionally, ensure that the behavior remains consistent regardless of the number of open tabs in Composer.

lrrrrr commented 20 hours ago

For anyone having the same issue:

Workaround 3: Use Alt Code for @ Symbol Hold down the Alt key. Type 64 on the numeric keypad (Alt + 64). Release the Alt key.