Support preview toggle when focus is on editor

This pull request allows the user to toggle the markdown preview while the focus is in the editor as well as in the workspace.