<p dir="auto">Currently, all application menu items are enabled no matter what element is focused, even if their commands aren't bound to that element or its parents. This can contribute to strange behavior / bugs like <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="72294581" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/6587" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/6587/hovercard" href="https://github.com/atom/atom/issues/6587">#6587</a>. If a command isn't bound to a focused element or its parent elements, then it should be disabled (and maybe also removed from the Command Palette? I think that might be better off in another issue though).</p>