VibeTunnel Keyboard Shortcuts
VibeTunnel provides a comprehensive set of keyboard shortcuts for efficient terminal session management. The app intelligently handles keyboard input to balance browser functionality with terminal control.Keyboard Capture Modes
VibeTunnel operates in two keyboard capture modes:1. Capture Active (Default)
- Most keyboard shortcuts are sent to the terminal
- Critical browser shortcuts remain functional
- Indicated by the keyboard icon in the session header
2. Capture Disabled
- Browser shortcuts take precedence
- Terminal receives only typed text
- Toggle with double-press Escape
Toggling Keyboard Capture
Press Escape twice within 500ms to toggle between capture modes.
Mobile Quick Keys
On touch devices, open Settings → Mobile Quick Keys → Customize to reorder or hide the terminal shortcut buttons. VibeTunnel includes Default and Compact layouts, stores the selected layout in the current browser, and keeps the Done button fixed so the software keyboard can always be dismissed.Critical Browser Shortcuts (Always Available)
These shortcuts always work, regardless of keyboard capture state:Tab Management
*When keyboard capture is active in session view, these shortcuts switch between VibeTunnel sessions instead of browser tabs
Window Management
Essential Operations
*When capture is active, ⌘A/Ctrl+A goes to terminal (moves cursor to line start)
Developer Tools
VibeTunnel-Specific Shortcuts
Navigation
Session Switching (When Keyboard Capture Active)
Note: When keyboard capture is active in session view, number shortcuts switch between VibeTunnel sessions instead of browser tabs. The session numbers correspond to the numbers shown in the session list. This allows quick navigation between active sessions without leaving the keyboard.
Terminal Shortcuts (When Capture Active)
When keyboard capture is active, these shortcuts are sent to the terminal:Cursor Movement
Text Editing
History & Search
Terminal Control
Shortcuts Behavior by Capture State
When Capture is Active ✅
These shortcuts go to the terminal:- Text editing (⌘A, ⌘E, ⌘W, ⌘K, ⌘U)
- Navigation (⌘F, ⌘B for forward/backward char)
- Terminal control (⌘L, ⌘D, ⌘R)
When Capture is Disabled ❌
These shortcuts perform browser actions:- ⌘F/Ctrl+F - Find in page
- ⌘L/Ctrl+L - Focus address bar
- ⌘D/Ctrl+D - Bookmark page
- ⌘P/Ctrl+P - Print
- ⌘S/Ctrl+S - Save page
Special Key Handling
Modified Enter Key
Function Keys
- F1-F12 are sent to the terminal when capture is active
- F5 (Refresh) works in browser when capture is disabled
- F11 (Fullscreen) always works
Platform Differences
macOS
- Uses ⌘ (Command) as primary modifier
- ⌥ (Option) for word navigation
- Additional shortcuts like ⌘H (Hide), ⌘M (Minimize)
Windows/Linux
- Uses Ctrl as primary modifier
- Alt for word navigation
- Alt+F4 closes windows
Tips
- Double-tap Escape to quickly toggle between terminal and browser shortcuts
- Critical shortcuts (new tab, close tab, copy/paste) always work
- Session switching (⌘1-9, ⌘0) - When keyboard capture is ON in session view, quickly switch between active sessions
- Tab switching (⌘1-9, ⌘0) - When keyboard capture is OFF, switch browser tabs as usual
- When unsure, check the keyboard icon in the session header to see capture state
Troubleshooting
Shortcuts not working as expected?
- Check keyboard capture state - Look for the keyboard icon in the session header
- Try double-escape - Toggle capture mode on/off
- Browser shortcuts in terminal? - Ensure keyboard capture is active
- Terminal shortcuts in browser? - Disable keyboard capture with double-escape
Copy/Paste issues?
- Standard copy/paste (⌘C/⌘V or Ctrl+C/Ctrl+V) always works
- For terminal copy mode, use the terminal’s built-in shortcuts
- Right-click context menu is always available
Implementation Details
The keyboard shortcut system is implemented in:web/src/client/utils/browser-shortcuts.ts- Centralized shortcut detectionweb/src/client/components/session-view/input-manager.ts- Terminal input handlingweb/src/client/app.ts- Application-level shortcut handling
- Critical browser shortcuts (highest priority)
- VibeTunnel app shortcuts
- Terminal shortcuts (when capture active)
- Browser defaults (when capture disabled)