Skip to content

Commit b71b3a6

Browse files
xmokraycastbot
andauthored
[Installed Applications] make shortcuts cross-platform (#23935)
* [Installed Applications] make shortcuts cross-platform * Update CHANGELOG.md --------- Co-authored-by: raycastbot <bot@raycast.com>
1 parent c242af2 commit b71b3a6

File tree

4 files changed

+34
-16
lines changed

4 files changed

+34
-16
lines changed

extensions/installed-extensions/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Installed Extensions Changelog
22

3+
## [Cross-plaform Keyboard Shortcuts] - 2026-01-05
4+
5+
- Update `shortcut`s to be cross-platform
6+
37
## [Enhancement] - 2025-11-15
48

59
- Add icon path for Windows

extensions/installed-extensions/package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/installed-extensions/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"erics118",
1010
"tonka3000",
1111
"litomore",
12-
"ridemountainpig"
12+
"ridemountainpig",
13+
"xmok"
1314
],
1415
"platforms": [
1516
"macOS",
@@ -65,8 +66,8 @@
6566
}
6667
],
6768
"dependencies": {
68-
"@raycast/api": "^1.103.3",
69-
"@raycast/utils": "^2.2.1"
69+
"@raycast/api": "^1.104.1",
70+
"@raycast/utils": "^2.2.2"
7071
},
7172
"devDependencies": {
7273
"@raycast/eslint-config": "^2.1.1",
@@ -77,10 +78,11 @@
7778
"typescript": "^5.9.3"
7879
},
7980
"scripts": {
80-
"build": "ray build -e dist",
81+
"build": "ray build",
8182
"dev": "ray develop",
8283
"fix-lint": "ray lint --fix",
8384
"lint": "ray lint",
85+
"prepublishOnly": "echo \"\\n\\nIt seems like you are trying to publish the Raycast extension to npm.\\n\\nIf you did intend to publish it to npm, remove the \\`prepublishOnly\\` script and rerun \\`npm publish\\` again.\\nIf you wanted to publish it to the Raycast Store instead, use \\`npm run publish\\` instead.\\n\\n\" && exit 1",
8486
"publish": "npx @raycast/api@latest publish"
8587
}
8688
}

extensions/installed-extensions/src/index.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ function OpenManifestInDefaultAppAction(props: { url: string }) {
5959
title={`Open Manifest in ${defaultApp.name}`}
6060
target={props.url}
6161
icon={{ fileIcon: defaultApp.path }}
62-
shortcut={{ modifiers: ["cmd", "shift"], key: "m" }}
62+
shortcut={{
63+
macOS: { modifiers: ["cmd", "shift"], key: "m" },
64+
Windows: { modifiers: ["ctrl", "shift"], key: "m" },
65+
}}
6366
/>
6467
);
6568
}
@@ -201,7 +204,10 @@ export default function IndexCommand() {
201204
<Action.CopyToClipboard
202205
title="Copy Item to Clipboard"
203206
content={formatItem(item, preferences.format)}
204-
shortcut={{ modifiers: ["cmd"], key: "." }}
207+
shortcut={{
208+
macOS: { modifiers: ["cmd"], key: "." },
209+
Windows: { modifiers: ["ctrl"], key: "." },
210+
}}
205211
/>
206212
<Action.CopyToClipboard
207213
title="Copy Extension List to Clipboard"
@@ -211,7 +217,10 @@ export default function IndexCommand() {
211217
preferences.separator,
212218
preferences.prepend,
213219
)}
214-
shortcut={{ modifiers: ["cmd", "shift"], key: "." }}
220+
shortcut={{
221+
macOS: { modifiers: ["cmd", "shift"], key: "." },
222+
Windows: { modifiers: ["ctrl", "shift"], key: "." },
223+
}}
215224
/>
216225
</ActionPanel.Section>
217226
<ActionPanel.Section>
@@ -221,7 +230,10 @@ export default function IndexCommand() {
221230
title="Open Extension Preferences"
222231
onAction={openExtensionPreferences}
223232
icon={Icon.Gear}
224-
shortcut={{ modifiers: ["cmd", "shift"], key: "," }}
233+
shortcut={{
234+
macOS: { modifiers: ["cmd", "shift"], key: "," },
235+
Windows: { modifiers: ["ctrl", "shift"], key: "," },
236+
}}
225237
/>
226238
</ActionPanel>
227239
}

0 commit comments

Comments
 (0)