I tried using textInputFocus && !inputFocus && editorLangId == 'markdown'
and textInputFocus && editorReadonly && editorLangId == 'markdown'
in When Expression for markdown.showSource, with relevant respective versions for markdown.showPreview .
But the shortcut still doesn't work when the Preview has Focus .