From 36fcbad9d0fa8b9cddae21b42e05e63d4fb3b20c Mon Sep 17 00:00:00 2001 From: EC2 Default User Date: Tue, 17 Oct 2023 16:17:11 +0000 Subject: [PATCH] Trim whitespace --- packages/commands/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;