diff --git a/packages/commands/src/index.ts b/packages/commands/src/index.ts index 3519aee41..9a4b76fcc 100644 --- a/packages/commands/src/index.ts +++ b/packages/commands/src/index.ts @@ -1167,7 +1167,7 @@ export namespace CommandRegistry { if (parts.cmd && Platform.IS_MAC) { mods += 'Cmd '; } - if (parts.key === '' || parts.key === ' ') { + if (parts.key.trim() === '') { return mods.trim(); } return mods + parts.key;