Skip to content

feat: Add keyboard shortcuts and shortcut menu bar (#127)#131

Merged
petertzy merged 3 commits intopetertzy:mainfrom
metergames:ryan/127-add-keyboard-shortcuts-for-each-operation
Mar 19, 2026
Merged

feat: Add keyboard shortcuts and shortcut menu bar (#127)#131
petertzy merged 3 commits intopetertzy:mainfrom
metergames:ryan/127-add-keyboard-shortcuts-for-each-operation

Conversation

@metergames
Copy link
Contributor

This PR implements comprehensive keyboard shortcuts across the application and introduces a dedicated shortcut menu bar for user guidance, as requested in issue #127.

Closes #127

I added checks to ensure macOS-specific Command bindings are registered only on relevant hardware.

Shortcuts:

  • Text Formatting: Added Bold, Italic, and Underline.
  • App-Wide: Open/Close/Close All tabs, AI Translation, Browser Preview, Dark Mode toggle, and Redo.
  • Editor-Specific: Headers (H1-H3), Table Insertion, and Exporting (HTML, Word, PDF).

Shortcut Menu Bar:

image

Add platform check so Command shortcuts are only registered on macOS. Add formatting shortcuts (bold/italic/underline) to the text widget level.
App-wide: Open File, Close Current Tab, Close All Tabs, Translate Selected Text with AI, Open Preview in Browser, Toggle Dark Mode, Redo alternate binding
Editor-only: Heading 1, Heading 2, Heading 3, Normal Text, Insert Table, Export to HTML, Export to Word, Export to PDF
@petertzy petertzy merged commit bed076e into petertzy:main Mar 19, 2026
@metergames metergames deleted the ryan/127-add-keyboard-shortcuts-for-each-operation branch March 19, 2026 12:57
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.

Add keyboard shortcuts for each operation

2 participants