Skip to content

Commit f76a359

Browse files
committed
fix: correct keyboard shortcut detection for Cmd+Shift+. (previous mode)
When Shift is pressed with the period key, event.key becomes ">" instead of ".". Fixed line 1576 to check for event.key === ">" for proper Cmd+Shift+. detection. Fixes keyboard shortcut issue reported in PR comment.
1 parent 3e39dc3 commit f76a359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/components/chat/ChatView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
15731573
switchToNextMode()
15741574
}
15751575
// Check for Command + Shift + . (period) for previous mode
1576-
else if ((event.metaKey || event.ctrlKey) && event.shiftKey && event.key === ".") {
1576+
else if ((event.metaKey || event.ctrlKey) && event.shiftKey && event.key === ">") {
15771577
event.preventDefault() // Prevent default browser behavior
15781578
switchToPreviousMode()
15791579
}

0 commit comments

Comments
 (0)