Skip to content

feat: make keyboard shortcuts configurable - #139

Open
hahhforest wants to merge 1 commit into
collabs-inc:mainfrom
hahhforest:configurable-keyboard-shortcuts
Open

feat: make keyboard shortcuts configurable#139
hahhforest wants to merge 1 commit into
collabs-inc:mainfrom
hahhforest:configurable-keyboard-shortcuts

Conversation

@hahhforest

Copy link
Copy Markdown

Summary

Adds configurable keyboard shortcuts for app actions exposed in Settings > Keyboard Shortcuts.

Why

Shortcut bindings are currently hard-coded, which makes conflicts with system, editor, or personal workflows hard to resolve.

What changed

  • Added shared shortcut definitions, override normalization, platform-aware matching, display formatting, conflict detection, and Electron accelerator conversion.
  • Added a Settings editor to record, clear, disable, and reset shortcuts by action category.
  • Wired shortcut preferences through the main process, shell, navigator, menu accelerators, tooltips, and search/add-workspace shortcut hints.
  • Ensured shortcut recording in Settings is not intercepted by the app-level shortcut listener.
  • Added unit coverage for defaults, overrides, matching, recording, validation, conflicts, formatting, and accelerators.

Test plan

  • npx --yes bun test packages/shared/src/keyboard-shortcuts.test.ts
  • npx --yes bun run build
  • git diff --check

@yiliush

yiliush commented May 17, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@hahhforest

Copy link
Copy Markdown
Author

I have read the Contributor License Agreement (CLA) and hereby sign the CLA.

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.

2 participants