Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(shortcuts): Improve shortcut registry documentation & style #8598

Merged
merged 3 commits into from
Oct 2, 2024

Conversation

cpcallen
Copy link
Contributor

The basics

The details

Proposed Changes

Make some minor refactorings of shortcut_registry.ts to improve readability and style, and add documentation for the KeyboardShortcut interface type.

Reason for Changes

It was a bit harder than necessary to grok how this worked (ideally one should not need to read the source code!), so trying to make it easier for others / future self.

Test Coverage

Passes npm test + quick manual verification that shortcuts still work.

Documentation

Improved, hopefully.

Make some minor refactorings of shortcut_registry.ts to improve
readability and style, and add documentation for the
KeyboardShortcut interface type.
core/shortcut_registry.ts Outdated Show resolved Hide resolved
core/shortcut_registry.ts Outdated Show resolved Hide resolved
core/shortcut_registry.ts Outdated Show resolved Hide resolved
core/shortcut_registry.ts Outdated Show resolved Hide resolved
core/shortcut_registry.ts Outdated Show resolved Hide resolved
core/shortcut_registry.ts Show resolved Hide resolved
core/shortcut_registry.ts Outdated Show resolved Hide resolved
core/shortcut_registry.ts Outdated Show resolved Hide resolved
core/shortcut_registry.ts Outdated Show resolved Hide resolved
core/shortcut_registry.ts Outdated Show resolved Hide resolved
@cpcallen
Copy link
Contributor Author

cpcallen commented Oct 1, 2024

@rachel-fenichel: You are a spelling-error-detecting machine—and evidently I need to figure out how to get emacs to give me wavy red underlines…

@cpcallen cpcallen merged commit 9cd58e3 into google:develop Oct 2, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants