Shortcuts.mdx: Add KeyboardShortcuts module and adhere the doc to it

This commit is contained in:
KiKaraage 2025-05-24 13:54:44 +07:00 committed by GitHub
parent f7e88be2ef
commit 3d236df604
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,9 @@ title: Keyboard Shortcuts
description: Enhance your Zen experience with customizable keybinds description: Enhance your Zen experience with customizable keybinds
--- ---
Zen Browser supported lots of keyboard shortcuts to help you do common tasks quicker. Access `Settings` > `Keyboard Shortcuts` and edit the available shortcuts to suit your workflow even more! import KeyboardShortcut from '@/components/KeyboardShortcut';
Zen Browser supported lots of keyboard shortcuts to help you do common tasks quicker. Access `Settings" /> > `Keyboard Shortcuts" /> and edit the available shortcuts to suit your workflow even more!
### Change or rebind keyboard shortcuts in Zen ### Change or rebind keyboard shortcuts in Zen
@ -21,17 +23,17 @@ Zen Browser supported lots of keyboard shortcuts to help you do common tasks qui
### Compact Mode ### Compact Mode
| **Action** | **Shortcut** | | **Action** | **Shortcut** |
| ----------------------- | -------------------- | | ----------------------- | ---------------------------------------------- |
| Toggle Floating Toolbar | `Alt + Ctrl/Cmd + T` | | Toggle Floating Toolbar | <KeyboardShortcut shortcut="Alt + Ctrl + T" /> |
| Toggle Floating Sidebar | `Alt + Ctrl/Cmd + S` | | Toggle Floating Sidebar | <KeyboardShortcut shortcut="Alt + Ctrl + S" /> |
| Toggle Compact Mode | `Alt + Ctrl/Cmd + C` | | Toggle Compact Mode | <KeyboardShortcut shortcut="Alt + Ctrl + C" /> |
### Workspaces ### Workspaces
| **Action** | **Shortcut** | | **Action** | **Shortcut** |
| -------------------------- | -------------------- | | -------------------------- | ---------------------------------------------- |
| Backward Workspace | `Alt + Ctrl/Cmd + Q` | | Backward Workspace | <KeyboardShortcut shortcut="Alt + Ctrl + Q" /> |
| Forward Workspace | `Alt + Ctrl/Cmd + E` | | Forward Workspace | <KeyboardShortcut shortcut="Alt + Ctrl + E" /> |
| Switch to Workspace (1-10) | Not set by default | | Switch to Workspace (1-10) | Not set by default |
You can assign custom keyboard shortcuts to switch into up to 10 workspaces. You can assign custom keyboard shortcuts to switch into up to 10 workspaces.
@ -41,142 +43,142 @@ You can assign custom keyboard shortcuts to switch into up to 10 workspaces.
The "Toggle Split View" shortcuts currently only applicable when selecting multiple tabs in tab sidebar, and doesn't worked when used inside a split view. The "Toggle Split View" shortcuts currently only applicable when selecting multiple tabs in tab sidebar, and doesn't worked when used inside a split view.
| **Action** | **Shortcut** | | **Action** | **Shortcut** |
| ------------------------------ | -------------------- | | ------------------------------ | ---------------------------------------------- |
| Close Split View (Unsplit All) | `Alt + Ctrl/Cmd + U` | | Close Split View (Unsplit All) | <KeyboardShortcut shortcut="Alt + Ctrl + U" /> |
| Toggle Split View Horizontal | `Alt + Ctrl/Cmd + H` | | Toggle Split View Horizontal | <KeyboardShortcut shortcut="Alt + Ctrl + H" /> |
| Toggle Split View Vertical | `Alt + Ctrl/Cmd + V` | | Toggle Split View Vertical | <KeyboardShortcut shortcut="Alt + Ctrl + V" /> |
| Toggle Split View Grid | `Alt + Ctrl/Cmd + G` | | Toggle Split View Grid | <KeyboardShortcut shortcut="Alt + Ctrl + G" /> |
### Window & Tab Management ### Window & Tab Management
| **Action** | **Shortcut** | | **Action** | **Shortcut** |
| ----------------------- | ---------------------- | | ----------------------- | ------------------------------------------------ |
| New Window | `Alt + Ctrl/Cmd + U` | | New Window | <KeyboardShortcut shortcut="Alt + Ctrl + U" /> |
| New Tab | `Ctrl/Cmd + T` | | New Tab | <KeyboardShortcut shortcut="Ctrl + T" /> |
| Close Tab | `Ctrl/Cmd + W` | | Close Tab | <KeyboardShortcut shortcut="Ctrl + W" /> |
| Close Window | `Shift + Ctrl/Cmd + W` | | Close Window | <KeyboardShortcut shortcut="Shift + Ctrl + W" /> |
| Quit Application | `Ctrl/Cmd + Q` | | Quit Application | <KeyboardShortcut shortcut="Ctrl + Q" /> |
| Restore Last Closed Tab | `Shift + Ctrl/Cmd + T` | | Restore Last Closed Tab | <KeyboardShortcut shortcut="Shift + Ctrl + T" /> |
| Undo Close Window | `Shift + Ctrl/Cmd + N` | | Undo Close Window | <KeyboardShortcut shortcut="Shift + Ctrl + N" /> |
| Select tab #1 - #8 ^ | `Alt + 1/2/.../8` | | Select tab #1 - #8 ^ | <KeyboardShortcut shortcut="Alt + 1/2/.../8" /> |
| Select last tab | `Alt + 9` | | Select last tab | <KeyboardShortcut shortcut="Alt + 9" /> |
- By default, you can **switch to next tab** using the `Ctrl/Cmd + Tab` shortcut and **switch to previous tab** using the `Ctrl/Cmd + Shift + Tab` shortcut. - By default, you can **switch to next tab** using the <KeyboardShortcut shortcut="Ctrl + Tab" /> shortcut and **switch to previous tab** using the <KeyboardShortcut shortcut="Ctrl + Shift + Tab" /> shortcut.
- When you're in Compact Mode and switching tabs using `Ctrl/Cmd + Tab` or `Ctrl/Cmd + Shift + Tab`, you can peek into the tab you're switching in by enabling the **"Briefly make the toolbar popup when switching or opening new tabs in compact mode"** option in `Settings` > `Look and Feel` > `Theme Settings`. - When you're in Compact Mode and switching tabs using <KeyboardShortcut shortcut="Ctrl + Tab" /> or <KeyboardShortcut shortcut="Ctrl + Shift + Tab`, you can peek into the tab you're switching in by enabling the **"Briefly make the toolbar popup when switching or opening new tabs in compact mode"** option in `Settings` > `Look and Feel` > `Theme Settings`.
- Pressing `Ctrl/Cmd + Tab` when you're in the last tab will switch you to the first available tab (Essentials first, then pinned tabs, and lastly, regular tabs). - Pressing <KeyboardShortcut shortcut="Ctrl + Tab" /> when you're in the last tab will switch you to the first available tab (Essentials first, then pinned tabs, and lastly, regular tabs).
- ^ Tab numbers listed for these keyboard shortcuts includes Essentials and pinned tabs. Example: If you have three Essentials, four pinned tabs, and five regular tabs: - ^ Tab numbers listed for these keyboard shortcuts includes Essentials and pinned tabs. Example: If you have three Essentials, four pinned tabs, and five regular tabs:
- `Alt + 1` until `Alt + 3` will switch you to your Essentials, - <KeyboardShortcut shortcut="Alt + 1" /> until <KeyboardShortcut shortcut="Alt + 3" /> will switch you to your Essentials,
- `Alt + 4` until `Alt + 7` will switch you to your pinned tabs, - <KeyboardShortcut shortcut="Alt + 4" /> until <KeyboardShortcut shortcut="Alt + 7" /> will switch you to your pinned tabs,
- `Alt + 8` will switch you to your first regular tab, - <KeyboardShortcut shortcut="Alt + 8" /> will switch you to your first regular tab,
- `Alt + 9` will switch you to your last tab (12th). - <KeyboardShortcut shortcut="Alt + 9" /> will switch you to your last tab (12th).
- Zen can also let you cycle through recently used tabs, instead of cycling through all of your tabs. Enable it by go to `Settings` > `General` > `Tabs` and check the `Ctrl + Tab cycles through tabs in recently used order`. A popup containing up to 7 recently used tabs will show up when you press `Ctrl/Cmd + Tab`. - Zen can also let you cycle through recently used tabs, instead of cycling through all of your tabs. Enable it by go to `Settings` > `General` > `Tabs` and check the `Ctrl + Tab cycles through tabs in recently used order`. A popup containing up to 7 recently used tabs will show up when you press <KeyboardShortcut shortcut="Ctrl + Tab`.
### Navigation ### Navigation
| **Action** | **Shortcut** | | **Action** | **Shortcut** |
| ------------------------------------ | ---------------------- | | ------------------------------------ | ------------------------------------------------ |
| Go Back | `Alt + <=` | | Go Back | <KeyboardShortcut shortcut="Alt + ←" /> |
| Go Forward | `Alt + =>` | | Go Forward | <KeyboardShortcut shortcut="Alt + →" /> |
| Navigate Back (Alternative) | `Ctrl/Cmd + [` | | Navigate Back (Alternative) | <KeyboardShortcut shortcut="Ctrl + [" /> |
| Navigate Forward (Alternative) | `Ctrl/Cmd + ]` | | Navigate Forward (Alternative) | <KeyboardShortcut shortcut="Ctrl + ]" /> |
| Go Home | `Alt + Home` | | Go Home | <KeyboardShortcut shortcut="Alt + Home" /> |
| Reload Page | `Ctrl/Cmd + R` | | Reload Page | <KeyboardShortcut shortcut="Ctrl + R" /> |
| Reload Page (Skip Current Cache) | `Shift + Ctrl/Cmd + R` | | Reload Page (Skip Current Cache) | <KeyboardShortcut shortcut="Shift + Ctrl + R" /> |
| Go to History (Open History Sidebar) | `Ctrl/Cmd + H` | | Go to History (Open History Sidebar) | <KeyboardShortcut shortcut="Ctrl + H" /> |
| Open Private Browsing Window | `Shift + Ctrl/Cmd + P` | | Open Private Browsing Window | <KeyboardShortcut shortcut="Shift + Ctrl + P" /> |
### Search & Find ### Search & Find
| **Action** | **Shortcut** | | **Action** | **Shortcut** |
| --------------------------------------- | ---------------------- | | --------------------------------------- | ------------------------------------------------ |
| Focus Search ^ | `Ctrl/Cmd + K` | | Focus Search ^ | <KeyboardShortcut shortcut="Ctrl + K" /> |
| Focus Search ^ (Alternative) | `Ctrl/Cmd + J` | | Focus Search ^ (Alternative) | <KeyboardShortcut shortcut="Ctrl + J" /> |
| Find on Page | `Ctrl/Cmd + F` | | Find on Page | <KeyboardShortcut shortcut="Ctrl + F" /> |
| Find Again (Jump to Next Result) | `Ctrl/Cmd + G` | | Find Again (Jump to Next Result) | <KeyboardShortcut shortcut="Ctrl + G" /> |
| Find Previous (Jump to Previous Result) | `Shift + Ctrl/Cmd + G` | | Find Previous (Jump to Previous Result) | <KeyboardShortcut shortcut="Shift + Ctrl + G" /> |
^ Focus Search shortcut will open your URL bar, shift focus and enable Search mode using your default search engine. ^ Focus Search shortcut will open your URL bar, shift focus and enable Search mode using your default search engine.
### Page Operations ### Page Operations
| **Action** | **Shortcut** | | **Action** | **Shortcut** |
| --------------------------------------- | ---------------------- | | --------------------------------------- | ------------------------------------------------ |
| Open Location (Current link in URL Bar) | `Ctrl/Cmd + L` | | Open Location (Current link in URL Bar) | <KeyboardShortcut shortcut="Ctrl + L" /> |
| Open Location (Alternative) | `Alt + D` | | Open Location (Alternative) | <KeyboardShortcut shortcut="Alt + D" /> |
| Save Page | `Ctrl/Cmd + S` | | Save Page | <KeyboardShortcut shortcut="Ctrl + S" /> |
| Print Page | `Ctrl/Cmd + P` | | Print Page | <KeyboardShortcut shortcut="Ctrl + P" /> |
| Toggle Reader Mode | `Alt + Ctrl/Cmd + R` | | Toggle Reader Mode | <KeyboardShortcut shortcut="Alt + Ctrl + R" /> |
| Toggle Picture-in-Picture | `Shift + Ctrl/Cmd + ]` | | Toggle Picture-in-Picture | <KeyboardShortcut shortcut="Shift + Ctrl + ]" /> |
| View Page Source | `Ctrl/Cmd + U` | | View Page Source | <KeyboardShortcut shortcut="Ctrl + U" /> |
| View Page Info | `Ctrl/Cmd + [` | | View Page Info | <KeyboardShortcut shortcut="Ctrl + [" /> |
### History & Bookmarks ### History & Bookmarks
| **Action** | **Shortcut** | | **Action** | **Shortcut** |
| -------------------------------- | ---------------------- | | -------------------------------- | ------------------------------------------------ |
| Show All History | `Shift + Ctrl/Cmd + H` | | Show All History | <KeyboardShortcut shortcut="Shift + Ctrl + H" /> |
| Bookmark This Page | `Ctrl/Cmd + D` | | Bookmark This Page | <KeyboardShortcut shortcut="Ctrl + D" /> |
| Bookmark This Page (Alternative) | `Shift + Ctrl/Cmd + D` | | Bookmark This Page (Alternative) | <KeyboardShortcut shortcut="Shift + Ctrl + D" /> |
| Show Bookmarks Library | `Shift + Ctrl/Cmd + O` | | Show Bookmarks Library | <KeyboardShortcut shortcut="Shift + Ctrl + O" /> |
### Media & Display ### Media & Display
| **Action** | **Shortcut** | | **Action** | **Shortcut** |
| --------------------- | ---------------------- | | --------------------- | ------------------------------------------------ |
| Toggle Mute | `Ctrl/Cmd + M` | | Toggle Mute | <KeyboardShortcut shortcut="Ctrl + M" /> |
| Zoom Out | `Ctrl/Cmd + -` | | Zoom Out | <KeyboardShortcut shortcut="Ctrl + -" /> |
| Zoom In | `Ctrl/Cmd + +` | | Zoom In | <KeyboardShortcut shortcut="Ctrl + +" /> |
| Reset Zoom Level | `Ctrl/Cmd + 0` | | Reset Zoom Level | <KeyboardShortcut shortcut="Ctrl + 0" /> |
| Switch Text Direction | `Shift + Ctrl/Cmd + X` | | Switch Text Direction | <KeyboardShortcut shortcut="Shift + Ctrl + X" /> |
| Take Screenshot | `Shift + Ctrl/Cmd + S` | | Take Screenshot | <KeyboardShortcut shortcut="Shift + Ctrl + S" /> |
### Developer Tools ### Developer Tools
| **Action** | **Shortcut** | | **Action** | **Shortcut** |
| ----------------------------- | ---------------------------- | | ----------------------------- | ------------------------------------------------------ |
| Toggle DevTools | `Shift + Ctrl/Cmd + I` | | Toggle DevTools | <KeyboardShortcut shortcut="Shift + Ctrl + I" /> |
| Toggle Browser Toolbox | `Alt + Shift + Ctrl/Cmd + I` | | Toggle Browser Toolbox | <KeyboardShortcut shortcut="Alt + Shift + Ctrl + I" /> |
| Toggle Browser Console | `Shift + Ctrl/Cmd + J` | | Toggle Browser Console | <KeyboardShortcut shortcut="Shift + Ctrl + J" /> |
| Toggle Responsive Design Mode | `Shift + Ctrl/Cmd + M` | | Toggle Responsive Design Mode | <KeyboardShortcut shortcut="Shift + Ctrl + M" /> |
| Toggle Inspector | `Shift + Ctrl/Cmd + L` | | Toggle Inspector | <KeyboardShortcut shortcut="Shift + Ctrl + L" /> |
| Toggle Web Console | `Shift + Ctrl/Cmd + K` | | Toggle Web Console | <KeyboardShortcut shortcut="Shift + Ctrl + K" /> |
| Toggle JavaScript Debugger | `Shift + Ctrl/Cmd + Z` | | Toggle JavaScript Debugger | <KeyboardShortcut shortcut="Shift + Ctrl + Z" /> |
| Toggle Network Monitor | `Shift + Ctrl/Cmd + E` | | Toggle Network Monitor | <KeyboardShortcut shortcut="Shift + Ctrl + E" /> |
| Toggle Style Editor | `Shift + F7` | | Toggle Style Editor | <KeyboardShortcut shortcut="Shift + F7" /> |
| Toggle Performance | `Shift + F5` | | Toggle Performance | <KeyboardShortcut shortcut="Shift + F5" /> |
| Toggle Storage | `Shift + F9` | | Toggle Storage | <KeyboardShortcut shortcut="Shift + F9" /> |
| Toggle DOM | `Shift + Ctrl/Cmd + W` | | Toggle DOM | <KeyboardShortcut shortcut="Shift + Ctrl + W" /> |
| Toggle Accessibility | `Shift + F12` | | Toggle Accessibility | <KeyboardShortcut shortcut="Shift + F12" /> |
### Zen Features ### Zen Features
| **Action** | **Shortcut** | | **Action** | **Shortcut** |
| ------------------------------ | ---------------------------- | | ------------------------------ | ------------------------------------------------------ |
| Copy Current URL as Markdown | `Alt + Shift + Ctrl/Cmd + C` | | Copy Current URL as Markdown | <KeyboardShortcut shortcut="Alt + Shift + Ctrl + C" /> |
| Copy Current URL | `Shift + Ctrl/Cmd + C` | | Copy Current URL | <KeyboardShortcut shortcut="Shift + Ctrl + C" /> |
| Toggle Sidebar Width | `Alt + B` | | Toggle Sidebar Width | <KeyboardShortcut shortcut="Alt + B" /> |
| Reset Pinned Tab to Pinned URL | Not set by default | | Reset Pinned Tab to Pinned URL | Not set by default |
### Other Features ### Other Features
| **Action** | **Shortcut** | | **Action** | **Shortcut** |
| -------------------------- | --------------------------- | | -------------------------- | ----------------------------------------------------- |
| Open Downloads | `Shift + Ctrl/Cmd + Y` | | Open Downloads | <KeyboardShortcut shortcut="Shift + Ctrl + Y" /> |
| Open Add-ons | `Shift + Ctrl/Cmd + A` | | Open Add-ons | <KeyboardShortcut shortcut="Shift + Ctrl + A" /> |
| Open File | `Ctrl/Cmd + O` | | Open File | <KeyboardShortcut shortcut="Ctrl + O" /> |
| Delete Key | `Delete` | | Delete Key | <KeyboardShortcut shortcut="Delete" /> |
| Enter Full Screen | `F11` | | Enter Full Screen | <KeyboardShortcut shortcut="F11" /> |
| Exit Full Screen | `F11` | | Exit Full Screen | <KeyboardShortcut shortcut="F11" /> |
| About Processes | `Shift + Escape` | | About Processes | <KeyboardShortcut shortcut="Shift + Escape" /> |
| Show Bookmarks Sidebar | `Ctrl/Cmd + B` | | Show Bookmarks Sidebar | <KeyboardShortcut shortcut="Ctrl + B" /> |
| Show Bookmarks Toolbar | `Shift + Ctrl/Cmd + B` | | Show Bookmarks Toolbar | <KeyboardShortcut shortcut="Shift + Ctrl + B" /> |
| Stop Loading | `Escape` | | Stop Loading | <KeyboardShortcut shortcut="Escape" /> |
| Toggle AI Chatbot Sidebar^ | `Alt + Ctrl/Cmd + X` | | Toggle AI Chatbot Sidebar^ | <KeyboardShortcut shortcut="Alt + Ctrl + X" /> |
| Toggle Firefox Sidebar | `Alt + Ctrl/Cmd + Z` | | Toggle Firefox Sidebar | <KeyboardShortcut shortcut="Alt + Ctrl + Z" /> |
| Show All Tabs | `Shift + Ctrl + Tab` | | Show All Tabs | <KeyboardShortcut shortcut="Shift + Ctrl + Tab" /> |
| Clear Browsing Data | `Shift + Ctrl/Cmd + Delete` | | Clear Browsing Data | <KeyboardShortcut shortcut="Shift + Ctrl + Delete" /> |
| WR Capture Command | `Ctrl/Cmd + #` | | WR Capture Command | <KeyboardShortcut shortcut="Ctrl + #" /> |
| Toggle WR Capture Sequence | `Ctrl/Cmd + ^` | | Toggle WR Capture Sequence | <KeyboardShortcut shortcut="Ctrl + ^" /> |
--- ---