diff --git a/packages/commands/src/index.ts b/packages/commands/src/index.ts index bbd39d797..5b58e90e9 100644 --- a/packages/commands/src/index.ts +++ b/packages/commands/src/index.ts @@ -1269,11 +1269,11 @@ export namespace CommandRegistry { } if (!layout.isModifierKey(key)) { mods.push(key); + // for modifier and character key strings return mods.join(' '); - } else { - // for purely modifier key strings add a space so they can be matched - return mods.join(' ') + ' '; } + // for purely modifier key strings + return mods.join(' '); } }