Skip to content

Commit

Permalink
Trim whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
m158261 committed Oct 17, 2023
1 parent d4e384c commit 36fcbad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/commands/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 36fcbad

Please sign in to comment.