Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/apps/documentation/public/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,18 @@ const MODULES_HTML = `
<div class="dc-card" id="mod-keymap">
<div class="dc-card-header"><span class="dc-card-icon">\u2328</span><h2>Keymap</h2></div>
<p>Configurable keyboard shortcuts for dashboard navigation and actions. Customize bindings for switching between apps, triggering actions, and navigating the UI efficiently.</p>
<h3>Default Shortcuts</h3>
<table class="dc-api-table">
<tbody>
<tr><td><code>Ctrl+Alt+D</code></td><td>Switch to Dashboard (grid view) in Shell</td></tr>
<tr><td><code>Ctrl+Alt+1&ndash;9</code></td><td>Switch to terminal tab 1&ndash;9</td></tr>
<tr><td><code>Ctrl+Alt+J</code></td><td>New terminal pane</td></tr>
<tr><td><code>Ctrl+Alt+B</code></td><td>New browser pane</td></tr>
<tr><td><code>Ctrl+Alt+K</code></td><td>Close current pane</td></tr>
<tr><td><code>Ctrl+Alt+Arrows</code></td><td>Navigate between panes in grid</td></tr>
<tr><td><code>Ctrl+Alt+Shift</code> (hold)</td><td>Hold-to-speak voice input</td></tr>
</tbody>
</table>
</div>
</section>
`;
Expand Down
5 changes: 5 additions & 0 deletions src/apps/shell/public/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -1555,6 +1555,11 @@ export async function mount(container, ctx) {
if (activePaneId) panes.get(activePaneId)?.destroy();
break;
}
case 'shell:dashboard': {
e.preventDefault();
setActiveTab(refs, 'grid');
break;
}
default: {
const termMatch = action.match(/^shell:terminal-(\d)$/);
if (termMatch) {
Expand Down
4 changes: 4 additions & 0 deletions src/packages/shared-assets/keymap-registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,10 @@
{ ctrlOrMeta: true, altKey: true, code: 'KeyK' },
'Close pane', 'Shell');

KeymapRegistry.register('shell:dashboard',
{ ctrlOrMeta: true, altKey: true, code: 'KeyD' },
'Dashboard (grid view)', 'Shell');

// Voice group
KeymapRegistry.register('voice:hold-to-speak',
{ ctrlOrMeta: true, altKey: true, shiftKey: true },
Expand Down
Loading