From 08d6dac4e4d0944bfd1d9524ee1d42e96c53d112 Mon Sep 17 00:00:00 2001 From: fullex <106392080+0xfullex@users.noreply.github.com> Date: Wed, 23 Jul 2025 17:24:26 +0800 Subject: [PATCH] fix[SelectionAssistant]: shift+click behavior in macOS and clipboard behavior in Windows (#8390) chore: update selection-hook to v1.0.8 and add finder to mac blacklist --- package.json | 2 +- src/main/configs/SelectionConfig.ts | 2 +- yarn.lock | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 6ddbaccc64..09ed39014a 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "os-proxy-config": "^1.1.2", "pdfjs-dist": "4.10.38", "react-json-view": "^1.21.3", - "selection-hook": "^1.0.7", + "selection-hook": "^1.0.8", "turndown": "7.2.0" }, "devDependencies": { diff --git a/src/main/configs/SelectionConfig.ts b/src/main/configs/SelectionConfig.ts index 31868a4708..88bd165422 100644 --- a/src/main/configs/SelectionConfig.ts +++ b/src/main/configs/SelectionConfig.ts @@ -46,7 +46,7 @@ export const SELECTION_PREDEFINED_BLACKLIST: IFilterList = { // Remote Desktop 'mstsc.exe' ], - MAC: [] + MAC: ['com.apple.finder'] } export const SELECTION_FINETUNED_LIST: IFinetunedList = { diff --git a/yarn.lock b/yarn.lock index e8f72b5515..2b54ead6b5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7287,7 +7287,7 @@ __metadata: remove-markdown: "npm:^0.6.2" rollup-plugin-visualizer: "npm:^5.12.0" sass: "npm:^1.88.0" - selection-hook: "npm:^1.0.7" + selection-hook: "npm:^1.0.8" shiki: "npm:^3.7.0" strict-url-sanitise: "npm:^0.0.1" string-width: "npm:^7.2.0" @@ -18480,14 +18480,14 @@ __metadata: languageName: node linkType: hard -"selection-hook@npm:^1.0.7": - version: 1.0.7 - resolution: "selection-hook@npm:1.0.7" +"selection-hook@npm:^1.0.8": + version: 1.0.8 + resolution: "selection-hook@npm:1.0.8" dependencies: node-addon-api: "npm:^8.4.0" node-gyp: "npm:latest" node-gyp-build: "npm:^4.8.4" - checksum: 10c0/d1fd7bc0a8dcbd3272b97ead7884777a073ff21054ed2d689df1c3fcfbfff450ce7b2ad09ad2e6d790ee364ff1fa146ad2cf9e94d3725a165fd11af544293738 + checksum: 10c0/ed7e230ddf10fcd1974b166c5e73170900260664e40454e4e1fcdf0ba21d2a08cf95824c085fa07069aa99b663e0ee3f2aed74c3fbdba0f4e99abe6956bd51dc languageName: node linkType: hard