Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Hi all,
I’m trying to migrate from VSCode to Cursor, but some of my keyboard shortcuts are just not working as expected (I imported all settings), especially this particular example with a condition on when the shortcut should apply.
This works in VSCode.
Any thoughts here would be appreciated.
Thanks.
Steps to Reproduce
cmd+1 will not toggle the sidebar when it has focus. It instead returns the focus to the editor.
{
"key": "cmd+1",
"command": "workbench.view.explorer"
},
{
"key": "cmd+1",
"command": "workbench.action.toggleSidebarVisibility",
"when": "viewContainer.workbench.view.explorer.enabled && sideBarFocus"
},
{
"key": "escape",
"command": "workbench.action.focusActiveEditorGroup",
"when": "sideBarFocus"
}
Expected Behavior
When the sidebar is hidden, I want cmd+1 to open and focus it.
If I then hit cmd+1 again (while the sidebar has focus), I want it to close the sidebar.
If the sidebar is open, but doesn’t have focus, and I hit cmd+1, I want it to focus the sidebar.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.5.9 (Universal)
VSCode Version: 1.99.3
Commit: de327274300c6f38ec9f4240d11e82c3b0660b20
Date: 2025-08-30T21:02:27.236Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0
Does this stop you from using Cursor
No - Cursor works, but with this issue