Skip to content

Commit ed5e512

Browse files
committed
Do not push an empty string to the result
1 parent 1a95f31 commit ed5e512

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/vs/base/common/keybindingLabels.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ function _simpleAsString(modifiers: Modifiers, key: string, labels: ModifierLabe
182182
}
183183

184184
// the actual key
185-
result.push(key);
185+
if (key !== '') {
186+
result.push(key);
187+
}
186188

187189
return result.join(labels.separator);
188190
}

0 commit comments

Comments
 (0)