Skip to content

Activate QuickType Keyboard Shortcuts#422

Merged
cubap merged 7 commits intomainfrom
308-active-quicktype-shortcuts
Feb 4, 2026
Merged

Activate QuickType Keyboard Shortcuts#422
cubap merged 7 commits intomainfrom
308-active-quicktype-shortcuts

Conversation

@thehabes
Copy link
Copy Markdown
Member

@thehabes thehabes commented Feb 3, 2026

Summary

Implements functional keyboard shortcuts for the QuickType feature, allowing users to quickly insert predefined text snippets while transcribing.

  • Add keyboard handling for Ctrl+0-9 and Ctrl+Shift+0-9 in the transcription input
  • Create shared insertTextAtCursor utility for text insertion
  • Fix shortcut label display (Ctrl+0 for index 9, Ctrl+Shift+0 for index 19)
  • Refactor QuickTypeTool click handler to use the shared utility

Keyboard Mapping

Shortcut Array Index Notes
Ctrl+1 through Ctrl+9 0-8 First 9 shortcuts
Ctrl+0 9 10th shortcut
Ctrl+Shift+1 through Ctrl+Shift+9 10-18 Next 9 shortcuts
Ctrl+Shift+0 19 20th shortcut
Click only 20+ No keyboard shortcut

Closes #308

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds keyboard shortcut functionality for QuickType text insertion, allowing users to insert predefined text snippets using Ctrl+0-9 and Ctrl+Shift+0-9 combinations.

Changes:

  • Adds a new utility module for inserting text at cursor position with proper event handling
  • Implements QuickType keyboard shortcut handling in the transcription block component
  • Updates shortcut display logic to correctly show Ctrl+0 and Ctrl+Shift+0 mappings

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
utilities/shortcutTextInput.js New utility module providing text insertion functionality with cursor position management
components/transcription-block/index.js Adds keyboard shortcut handler for QuickType shortcuts (Ctrl+0-9, Ctrl+Shift+0-9)
components/quicktype-tool/quicktype-editor-dialog.js Fixes shortcut label generation to correctly display Ctrl+0 and Ctrl+Shift+0
components/quicktype-tool/index.js Refactors button click handler to use the new insertTextAtCursor utility

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@thehabes thehabes requested a review from cubap February 3, 2026 17:21
@thehabes thehabes marked this pull request as ready for review February 3, 2026 17:21
@cubap cubap merged commit 743e058 into main Feb 4, 2026
8 checks passed
@cubap cubap deleted the 308-active-quicktype-shortcuts branch February 4, 2026 17:44
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.

QuickType shortcuts are not connected to CTRL+#

3 participants