Editor shortcuts and Tab stop working when embedded browser is open

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When I try to use keyboard shortcuts, some do not work (all “command”+key commands I tried) while some works differently than expected (tab not accepting autocomplete and instead shifting focus). I figured that te problem is related to the embedded browser being open. Even if my focus was on a tab with code.

Closing the embedded browser restores them.

Steps to Reproduce

Open the embedded browser while editing a code file, then press Tab, ⌘A, or ⌘S.

Expected Behavior

Editor shortcuts should work while the code editor has focus.

Operating System

MacOS

Version Information

Cursor 3.27.22 (Universal),
macOS 27.0.1

Additional Information

Log clue: Skipping keybinding dispatch because browserViewFocused is true

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the detailed report and for sharing that log line. It immediately showed what’s going on.

From that line, it looks like Cursor still thinks keyboard focus is inside the built-in browser, even after you clicked back into the file. That’s why editor shortcuts stop working, and why Tab just moves focus instead of accepting the suggestion. That shouldn’t happen, and it isn’t related to your setup. I’ve passed it along to the team.

For now, you can try resetting it without closing the browser:

  1. In the editor group where the browser is open, click a different tab so the browser goes into the background. Then switch back to your file.
  2. If that doesn’t help, Cmd+Shift+P may still work in that state, so run Developer: Reload Window.

Cmd+1 and Escape probably won’t help here because they’re likely being blocked the same way as the other shortcuts.

One question: what are you doing right before this starts? For example, are you typing an address into the browser’s address bar, does the agent open a page on its own, or do you open the browser with a command? That would help narrow down the exact trigger.

I’ll post here when I have an update.