Skip to content

Commit 2cec7a8

Browse files
authored
fix: make sure showKeybindings stills works in screencast mode (microsoft#202735)
fixes microsoft#201689
1 parent 1a38682 commit 2cec7a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/browser/actions/developerActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ class ToggleScreencastModeAction extends Action2 {
350350
append(keyboardMarker, $('span.title', {}, `${commandAndGroupLabel} `));
351351
}
352352

353-
if ((options.showKeys ?? true) || (commandDetails && (options.showKeybindings ?? true))) {
353+
if ((options.showKeys ?? true) || ((options.showKeybindings ?? true) && this._isKbFound(shortcut))) {
354354
// Fix label for arrow keys
355355
keyLabel = keyLabel?.replace('UpArrow', '↑')
356356
?.replace('DownArrow', '↓')

0 commit comments

Comments
 (0)