No escape from Command menu

Because I want to restrict Escape to the use of skills, I need to be able to disable Escape from the Command menu. I am using Yanfly's Battle Engine.

I have the following code which was supposed to do this, but when I test it, Escape is not greyed out and can be used, making the skills redundant.

Code:
class Window_ActorCommand < Window_Command
  #--------------------------------------------------------------------------
  # new method: process_dir4
  #--------------------------------------------------------------------------
  def process_dir4
  end
  #--------------------------------------------------------------------------
  # new method: process_dir6
  #--------------------------------------------------------------------------
  def process_dir6
  end
end # Window_ActorCommand

Can anyone suggest an alternative to this?
Maybe even removing the Command menu entirely, as it now serves no purpose (but that may be hugely complicated for all I know).

Thank you.

EDIT
Poster's curse has struck again. While waiting for an answer, I went and did yet another search, having done several before. I immediately found this post which removes the Command menu and solves my problem.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/no-escape-from-command-menu.125330/