diff --git a/src/vs/workbench/browser/actions/listCommands.ts b/src/vs/workbench/browser/actions/listCommands.ts index 634dcd6959934c46a75e67f8da0d9f682f4324d1..e7c711e378b654c0f0f044a9fad5c3bffbd4b0f1 100644 --- a/src/vs/workbench/browser/actions/listCommands.ts +++ b/src/vs/workbench/browser/actions/listCommands.ts @@ -751,7 +751,8 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({ if (list.getSelection().length > 0) { list.setSelection([]); - } else if (list.getFocus().length > 0) { + } + if (list.getFocus().length > 0) { list.setFocus([]); } } @@ -763,7 +764,8 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({ if (list.getSelection().length > 0) { list.setSelection([], fakeKeyboardEvent); - } else if (list.getFocus().length > 0) { + } + if (list.getFocus().length > 0) { list.setFocus([], fakeKeyboardEvent); } } @@ -774,7 +776,8 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({ if (tree.getSelection().length) { tree.clearSelection({ origin: 'keyboard' }); - } else if (tree.getFocus()) { + } + if (tree.getFocus()) { tree.clearFocus({ origin: 'keyboard' }); } }