'VSCode Focus Active Editor Group when explorer is Focused Not Working

In VSCode 1.64.1 on Windows, I'm trying to create some conditional shortcuts for focusing.

When the file explorer is not focused I would like ctrl+0 to focus the active editor group. When the active editor group is focused, I would like ctrl+0 to focus the explorer. I tried the following, but it only partially works.

Currently, hitting ctrl+0 will focus the explorer, but hitting ctrl+0 again when the explorer is focused does not focus the active editor group as desired:

//keybindings.json
  {
    "key": "ctrl+0",
    "command": "workbench.action.focusActiveEditorGroup",
    "when": "!editorTextFocus"
  },
  {
    "key": "ctrl+0",
    "command": "workbench.action.focusSideBar",
    "when": "!explorerFocus"
  }



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source