MenuItem shortcuts stop working when play mode is started

Example:

[MenuItem("Edit/Test")]
static void Test(){
    Debug.Log("Test");
}
  • If play-mode wasn’t started yet in the current editor session, “Test” is printed to the console
  • After/during play-mode, Edit/Test does nothing

Update: Apparently it’s not “ignored”, but executes the wrong menu item. For example, sometimes my project window will come into focus instead of running the function it was supposed to.