Hotkey'ing Yanfly's Command Equip to a Button

This is similar to another thread I made a few hours back for the base RPG Maker battle item/skill window, but I'm trying to tie Yanfly's Command Equip (aka. equipping during battle) to a hotkey using @Sixth 's Control Config script. I tried doing this myself, but I don't seem to understand how to attach it to the command (i.e pressing [x] button to remotely activate the Command Equip function).

I know it's possible, because I've done it for individual skills but hmm.
Never mind, I figured this one out on my own.

I just had to do this in Yanfly Battle Engine:

Ruby:
class Window_ActorCommand < Window_Command
 
  #--------------------------------------------------------------------------
  # overwrite method: process_handling
  #--------------------------------------------------------------------------
  def process_handling
    return unless open? && active
    return process_equipmenu if Input.trigger_ex?($system[:p1][:tool])
    return super
  end
 
  def process_equipmenu
    Sound.play_cursor
    Input.update
    deactivate
    call_handler(:equip)
  end

(You're free to appropriate this for your own menu hotkeys.)
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/hotkeying-yanflys-command-equip-to-a-button.150682/