Skip to content

Commit bed718b

Browse files
committed
Add keyboard shortcuts for file list and source view navigation
File list: * j/k to move between rows * Enter to open focused file * Escape to clear focus or blur inputs Source view: * n to jump to next missed line * p/N to jump to previous missed line * Escape to close dialog
1 parent 3f4f8b4 commit bed718b

4 files changed

Lines changed: 105 additions & 6 deletions

File tree

assets/stylesheets/screen.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,12 @@ table.file_list tbody tr:hover {
448448
background: var(--accent-subtle);
449449
}
450450

451+
table.file_list tbody tr.keyboard-focus {
452+
background: var(--accent-subtle);
453+
outline: 2px solid var(--accent);
454+
outline-offset: -2px;
455+
}
456+
451457
table.file_list tbody td {
452458
padding: var(--sp-2) var(--sp-2);
453459
border-bottom: 1px solid var(--border);

0 commit comments

Comments
 (0)