So, I defined keyboard shortcuts in BTT which are specific to Mail app (e.g. "E" to archive a message). The problem is that I only want those shortcuts to be active when the frontmost window is the Mac Mail Inbox; not when a compose window is open. If they're active when a compose window is open, then, for example, the "E" key will no longer work.
What's a good solution to this?