Close Item Scene Directly to Game Map?

I want to have the option of bypassing the main menu on exiting the item submenu.

Is there a script call or plugin that can do this?
How is the option being evaluated? Are you going to have an extra command to leave the Item scene, or is it something you want the player to be able to toggle from the Options menu?
How is the option being evaluated? Are you going to have an extra command to leave the Item scene, or is it something you want the player to be able to toggle from the Options menu?
The former, but ideally I'd like to replace or override the command that closes the Item scene back into the Main Menu.

I'm also using the Visustella core plugins, including the ItemsEquips, MainMenu, and Options core, which may complicate things.
You can try this (untested). Paste into a text editor, save as a *.js file, include as a plugin.

Code:
Scene_Item.prototype.onItemCancel = function() {
    if (this._categoryWindow.needsSelection()) {
        this._itemWindow.deselect();
        this._categoryWindow.activate();
    } else {
        SceneManager.goto(Scene_Map);
    }
};
You can try this (untested). Paste into a text editor, save as a *.js file, include as a plugin.

Code:
Scene_Item.prototype.onItemCancel = function() {
    if (this._categoryWindow.needsSelection()) {
        this._itemWindow.deselect();
        this._categoryWindow.activate();
    } else {
        SceneManager.goto(Scene_Map);
    }
};

Tested it out both with my other plugins running and also without them, but unfortunately it doesn't work. Thanks for taking the time to try to help, though. I really appreciate it.

Original thread: https://forums.rpgmakerweb.com/threads/close-item-scene-directly-to-game-map.170371/