command-cmd 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/cmd.js +8 -1
  2. package/package.json +1 -1
package/cmd.js CHANGED
@@ -2286,7 +2286,14 @@ function createActionHandlers(robot, runtime) {
2286
2286
  },
2287
2287
 
2288
2288
  async open_app(command) {
2289
- await tapKey('command');
2289
+ // Check if user wants to use Spotlight/Launchpad (command key)
2290
+ // Use 'launch:true' or 'launch:true' in modifiers
2291
+ const useLauncher = command.modifiers === 'launch' ||
2292
+ command.modifiers === 'true';
2293
+
2294
+ if (useLauncher) {
2295
+ await tapKey('command');
2296
+ }
2290
2297
 
2291
2298
  const mapStore = await getMapStore();
2292
2299
  const appRef = resolveAppInMap(mapStore, command.command);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "command-cmd",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "main": "cmd.js",
5
5
  "type": "module",
6
6
  "scripts": {