Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When the sidebar has focus, workbench.action.focusActiveEditorGroup (and focusFirstEditorGroup) does nothing when triggered via a keybinding. The same command works correctly when run from the Command Palette.
This works correctly in VS Code with the same keybindings.json.
Additional findings:
- Running
workbench.action.focusActiveEditorGroupfrom the Command Palette while the sidebar is focused works correctly — focus moves to the editor workbench.action.focusFirstEditorGrouphas the same issueworkbench.action.toggleSidebarVisibilityworks fine via keybinding from the sidebar, confirming the keybinding is delivered- The same keybindings.json works correctly in VS Code
workbench.action.focusNextParterrors with:Unknown part workbench.parts.activitybar on layout wb?; have: workbench.parts.statusbar, workbench.parts.editor, workbench.parts.titlebar, workbench.parts.banner, workbench.parts.panel, workbench.parts.auxiliarybar, workbench.parts.sidebar, workbench.parts.unifiedsidebar
Steps to Reproduce
- Add this to
keybindings.json:
{
"key": "ctrl+shift+alt+space",
"command": "workbench.action.focusActiveEditorGroup"
}
- Open a file in the editor
- Click the sidebar (e.g. File Explorer) so it has focus
- Press ctrl+shift+alt+space
Expected Behavior
expected: Focus moves to the editor group
actual: Focus stays in the sidebar. No error.
Operating System
Linux
Version Information
- Cursor 2.6.21 (fea2f546c979, arm64)
- VS Code 1.112.0 (works correctly with same keybindings)
- Fedora Asahi Remix 43
- Linux 6.18.15-400.asahi.fc43.aarch64+16k
Does this stop you from using Cursor
No - Cursor works, but with this issue