Skip to content

Conversation

@aheizi
Copy link
Contributor

@aheizi aheizi commented Feb 28, 2025

Description

add shortcut to switch modes.

In order to have a pure code environment, i transferred pr from #1120

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Manual testing

Checklist:

  • My code follows the patterns of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation

Additional context

see #1120

Added shortcut key hints:
image

Related Issues

Reviewers


Important

Adds keyboard shortcut (Cmd/Ctrl + .) to switch modes and displays shortcut hint in UI.

  • New Feature:
    • Adds keyboard shortcut (Cmd/Ctrl + .) to switch modes in ChatView.tsx and ChatTextArea.tsx.
    • Displays mode switch shortcut hint in ChatTextArea.tsx.
  • Functions:
    • switchToNextMode in ChatView.tsx and ChatTextArea.tsx to cycle through modes.
    • handleKeyDown in ChatView.tsx and ChatTextArea.tsx to listen for shortcut keys.
  • UI Changes:
    • Adds modeShortcutText prop to ChatTextArea for displaying shortcut hint.

This description was created by Ellipsis for 3d699640d5c7a5fd9059738e082e9ca8503a3dfc. It will automatically update as commits are pushed.

@aheizi aheizi requested review from cte and mrubens as code owners February 28, 2025 14:03
@changeset-bot
Copy link

changeset-bot bot commented Feb 28, 2025

⚠️ No Changeset found

Latest commit: 251b836

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Feb 28, 2025
@aheizi aheizi mentioned this pull request Feb 28, 2025
8 tasks
@dosubot dosubot bot added the enhancement New feature or request label Feb 28, 2025
@aheizi aheizi requested a review from mrubens March 1, 2025 14:58
@aheizi aheizi force-pushed the feature/add-shortcut-to-switch-modes branch from a4a965a to 251b836 Compare March 1, 2025 14:59
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 1, 2025
@mrubens mrubens merged commit d70c3e0 into RooCodeInc:main Mar 1, 2025
9 checks passed
@aheizi aheizi deleted the feature/add-shortcut-to-switch-modes branch March 2, 2025 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants