Skip to content

feat: add tab:close keyboard shortcut#8116

Open
nKOxxx wants to merge 1 commit intovercel:canaryfrom
nKOxxx:canary
Open

feat: add tab:close keyboard shortcut#8116
nKOxxx wants to merge 1 commit intovercel:canaryfrom
nKOxxx:canary

Conversation

@nKOxxx
Copy link

@nKOxxx nKOxxx commented Mar 4, 2026

Description

Add keyboard shortcut to close tabs with Ctrl+W (Linux/Windows) and Cmd+W (Mac).

Fixes #3548

Changes

  • app/commands.ts: Add 'tab:close' command that emits 'tab close req' RPC event
  • app/keymaps/darwin.json: Add 'tab:close': 'command+w' for Mac
  • app/keymaps/linux.json: Add 'tab:close': 'ctrl+w' for Linux
  • app/keymaps/win32.json: Add 'tab:close': 'ctrl+w' for Windows
  • lib/index.tsx: Add RPC handler for 'tab close req' to dispatch closeTab action

Usage

Users can now close tabs using:

  • Mac: Cmd+W
  • Linux/Windows: Ctrl+W

This matches the behavior of most browsers and terminal emulators.

Testing

  • Added keybinding to all three platform keymaps
  • Command handler emits correct RPC event
  • RPC handler dispatches closeTab action with active session UID

Related Issues

Closes #3548

Add Ctrl+W (Linux/Windows) and Cmd+W (Mac) shortcuts to close tabs.

Changes:
- Add tab:close command to app/commands.ts
- Add keybinding to all platform keymaps (darwin, linux, win32)
- Add RPC handler in lib/index.tsx to close active tab

Closes vercel#3548
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request: add "tab:close" shortcut

1 participant