fix: fix shortcut issue in windows context menu (#804)

* fix: fix shortcut issue in windows context menu

* docs: update changelog
This commit is contained in:
ayangweb
2025-07-23 16:20:46 +08:00
committed by GitHub
parent 25bbab7432
commit ac835c76aa
2 changed files with 5 additions and 2 deletions

View File

@@ -34,6 +34,7 @@ Information about release notes of Coco Server is provided here.
- fix: increase read_timeout for HTTP streaming stability #798
- fix: enter key problem #794
- fix: fix selection issue after renaming #800
- fix: fix shortcut issue in windows context menu #804
### ✈️ Improvements

View File

@@ -142,7 +142,9 @@ const ContextMenu = ({ formatUrl }: ContextMenuProps) => {
type === "AI Assistant" ||
id === "Extension Store",
clickEvent() {
copyToClipboard(formatUrl && formatUrl(selectedSearchContent) || url);
copyToClipboard(
(formatUrl && formatUrl(selectedSearchContent)) || url
);
},
},
{
@@ -169,7 +171,7 @@ const ContextMenu = ({ formatUrl }: ContextMenuProps) => {
name: t("search.contextMenu.copyQuestionAndAnswer"),
icon: <Copy />,
keys: isMac ? ["⌘", "L"] : ["Ctrl", "L"],
shortcut: isMac ? "meta.l" : "ctrl+l",
shortcut: isMac ? "meta.l" : "ctrl.l",
hide: category !== "Calculator",
clickEvent() {
copyToClipboard(`${query.value} = ${result.value}`);