Hide wrong-mode commands.