Skip to content

Commit ac835c7

Browse files
authored
fix: fix shortcut issue in windows context menu (#804)
* fix: fix shortcut issue in windows context menu * docs: update changelog
1 parent 25bbab7 commit ac835c7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docs/content.en/docs/release-notes/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Information about release notes of Coco Server is provided here.
3434
- fix: increase read_timeout for HTTP streaming stability #798
3535
- fix: enter key problem #794
3636
- fix: fix selection issue after renaming #800
37+
- fix: fix shortcut issue in windows context menu #804
3738

3839
### ✈️ Improvements
3940

src/components/Search/ContextMenu.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ const ContextMenu = ({ formatUrl }: ContextMenuProps) => {
142142
type === "AI Assistant" ||
143143
id === "Extension Store",
144144
clickEvent() {
145-
copyToClipboard(formatUrl && formatUrl(selectedSearchContent) || url);
145+
copyToClipboard(
146+
(formatUrl && formatUrl(selectedSearchContent)) || url
147+
);
146148
},
147149
},
148150
{
@@ -169,7 +171,7 @@ const ContextMenu = ({ formatUrl }: ContextMenuProps) => {
169171
name: t("search.contextMenu.copyQuestionAndAnswer"),
170172
icon: <Copy />,
171173
keys: isMac ? ["⌘", "L"] : ["Ctrl", "L"],
172-
shortcut: isMac ? "meta.l" : "ctrl+l",
174+
shortcut: isMac ? "meta.l" : "ctrl.l",
173175
hide: category !== "Calculator",
174176
clickEvent() {
175177
copyToClipboard(`${query.value} = ${result.value}`);

0 commit comments

Comments
 (0)