feat: Add Previous Mode Keyboard Shortcut and Update Hint Text #2322
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces a keyboard shortcut to navigate to the previous mode in the Roo Code chat view and updates the corresponding UI hint text for clarity.
Adds Shortcut: Implements
Cmd+/(macOS) /Ctrl+/(Windows/Linux) to switch to the previous mode. The/key was chosen to avoid conflict with the default VS Code settings shortcut (Cmd+,).Updates Hint Text: Modifies the tooltip hint in the chat view to clearly display both shortcuts using the format:
⌘ + / (prev) or . (next) mode(on macOS) orCtrl + / (prev) or . (next) mode(on Windows/Linux).Why
Improves user experience by providing a quick keyboard method to cycle backward through available modes.
Enhances clarity of the shortcut hint text.
How
Screenshots
macOS:
Important
Adds
Cmd+/(macOS) /Ctrl+/(Windows/Linux) shortcut for previous mode and updates hint text inChatView.tsx.Cmd+/(macOS) /Ctrl+/(Windows/Linux) shortcut inChatView.tsxto switch to the previous mode.ChatView.tsxto⌘ + / (prev) or . (next) modefor macOS andCtrl + / (prev) or . (next) modefor Windows/Linux.switchToPreviousMode()inChatView.tsxto handle previous mode switching.handleKeyDown()inChatView.tsxto includeswitchToPreviousMode()logic.modeShortcutTextinChatView.tsxto reflect new shortcut format.This description was created by
for b3bd175. It will automatically update as commits are pushed.