Skip to content

Commit 9aa7d23

Browse files
authored
fix: shortcut key not opening extension store (#877)
* fix: shortcut key not opening extension store * docs: update changelog
1 parent 99b316d commit 9aa7d23

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ Information about release notes of Coco App is provided here.
2525

2626
- fix: fix issue with update check failure #833
2727
- fix: web component login state #857
28+
- fix: shortcut key not opening extension store #877
2829
- fix: set up hotkey on main thread or Windows will complain #879
2930

30-
3131
### ✈️ Improvements
3232

3333
- refactor: calling service related interfaces #831
@@ -40,7 +40,7 @@ Information about release notes of Coco App is provided here.
4040
- build: web component build error #858
4141
- refactor: coordinate third-party extension operations using lock #867
4242
- refactor: index iOS apps and macOS apps that store icon in Assets.car #872
43-
- refactor: accept both '-' and '_' as locale str separator #876
43+
- refactor: accept both '-' and '\_' as locale str separator #876
4444

4545
## 0.7.1 (2025-07-27)
4646

src/hooks/useKeyboardNavigation.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export function useKeyboardNavigation({
3737
const modifierKey = useShortcutsStore((state) => {
3838
return state.modifierKey;
3939
});
40+
const { setSelectedSearchContent } = useSearchStore();
4041

4142
const getModifierKeyPressed = (event: KeyboardEvent) => {
4243
const metaKeyPressed = event.metaKey && modifierKey === "meta";
@@ -123,6 +124,8 @@ export function useKeyboardNavigation({
123124

124125
const item = globalItemIndexMap[index];
125126

127+
setSelectedSearchContent(item);
128+
126129
platformAdapter.openSearchItem(item, formatUrl);
127130
}
128131
},

src/utils/tauriAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export const createTauriAdapter = (): TauriPlatformAdapter => {
254254
async openSearchItem(data) {
255255
const { invoke } = await import("@tauri-apps/api/core");
256256

257-
console.log("data", data);
257+
console.log("openSearchItem", data);
258258

259259
if (data?.type === "AI Assistant" || data?.id === "Extension Store") {
260260
const textarea = document.querySelector("#search-textarea");

0 commit comments

Comments
 (0)