Skip to content

Add keyboard shortcuts for Unified Diff navigation and actions - #2994

Merged
tobiasmelcher merged 1 commit into
eclipse-platform:masterfrom
tobiasmelcher:d031119/unified-diff-keyboard-shortcuts
Oct 21, 2026
Merged

tobiasmelcher merged 1 commit into
eclipse-platform:masterfrom
tobiasmelcher:d031119/unified-diff-keyboard-shortcuts

Conversation

@tobiasmelcher

Copy link
Copy Markdown
Contributor

Adds keyboard shortcuts for the Unified Diff toolbar so the view can be driven without the mouse.

  • Esc — Hide all diffs
  • Alt+Enter — Accept current diff
  • Shift+Esc — Hide current diff
  • Shift+Alt+Enter — Accept all diffs

The Next/Previous toolbar actions now carry the compare-editor command IDs, so their bound shortcuts show in the tooltips. The per-diff commands resolve their diff from the hover toolbar when it is open and otherwise from the caret, so they work for keyboard-only use. All commands live in a new org.eclipse.compare.unifiedDiffScope context that is active only while a Unified Diff is open.

Fixes #2939

Claude Code helped prepare this change.

@tobiasmelcher
tobiasmelcher force-pushed the d031119/unified-diff-keyboard-shortcuts branch from e3af2a8 to d0b32df Compare October 5, 2026 13:08
@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

    54 files  ± 0      54 suites  ±0   39m 55s ⏱️ -10s
 4 888 tests + 6   4 866 ✅ + 6   22 💤 ±0  0 ❌ ±0 
12 555 runs  +18  12 401 ✅ +18  154 💤 ±0  0 ❌ ±0 

Results for commit 37a1bd1. ± Comparison against base commit 65f6928.

♻️ This comment has been updated with latest results.

@tobiasmelcher
tobiasmelcher force-pushed the d031119/unified-diff-keyboard-shortcuts branch 2 times, most recently from e5082d2 to 2307478 Compare October 9, 2026 14:16
@tobiasmelcher
tobiasmelcher force-pushed the d031119/unified-diff-keyboard-shortcuts branch 4 times, most recently from 74f961b to 737bf85 Compare October 20, 2026 07:34
@tobiasmelcher
tobiasmelcher force-pushed the d031119/unified-diff-keyboard-shortcuts branch from 737bf85 to 37a1bd1 Compare October 21, 2026 13:40
@tobiasmelcher
tobiasmelcher merged commit 65b14d6 into eclipse-platform:master Oct 21, 2026
18 checks passed
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.

Unified Diff: Make overlay toolbar actions accessible via keyboard shortcuts

3 participants