promotional bannermobile promotional banner

DirectGameMenu

Opens game menu directly when pressing its bind ("Esc" by default)

This tiny addon opens the game menu (bound to the "Escape" key by default) in one press. With this, you will only have to press "Escape" once to open the game menu even if you have a target, are casting a spell, or have another menu open. It does this by tracking whether the game menu is open and toggling the game menu's visibility with that state every time the game menu bind is pressed. Here's the code:

local gameMenuWasShown = GameMenuFrame:IsShown()

local function updateWhetherGameMenuWasShown()
    gameMenuWasShown = GameMenuFrame:IsShown()
end

hooksecurefunc("ToggleGameMenu", function()
    PlaySound(gameMenuWasShown and SOUNDKIT.IG_MAINMENU_QUIT or SOUNDKIT.IG_MAINMENU_OPEN)
    GameMenuFrame:SetShown(not gameMenuWasShown)
    updateWhetherGameMenuWasShown()
end)

MainMenuMicroButton:HookScript("OnClick", updateWhetherGameMenuWasShown)

This addon was previously able to fully replace Blizzard's ToggleGameMenu function, allowing opening the game menu without cancelling a spell cast or dropping target, but it's no longer able to do that because Blizzard restricted the ToggleGameMenu function.  An addon which adds a new separate keybind for toggling the game menu directly may be possible, but this isn't it (yet).

The DirectGameMenu Team

profile avatar
  • 4
    Followers
  • 14
    Projects
  • 373.3K
    Downloads

More from BujuArenaView all

  • AutoGear project image

    AutoGear

    • 240.9K
    • Addons

    Instantly and automatically rolls on loot and equips gear upgrades from quests, dungeons, and everywhere else

    • 240.9K
    • March 3, 2026
    • Addons
    • +1
  • TradeSkillRecipeIDShower project image

    TradeSkillRecipeIDShower

    • 8.8K
    • Addons

    Adds recipe ID to the trade skill recipe details

    • 8.8K
    • February 14, 2026
    • Addons
  • ClickFriendToWhisper project image

    ClickFriendToWhisper

    • 289
    • Addons

    Enables clicking a friend in the friends list to whisper them

    • 289
    • February 11, 2026
    • Addons
  • DeleteGoodItemConfirmHelper project image

    DeleteGoodItemConfirmHelper

    • 21.4K
    • Addons

    Changes good item deletion confirmation so you can just click instead of typing "delete"

    • 21.4K
    • February 10, 2026
    • Addons
  • AutoGear project image

    AutoGear

    • 240.9K
    • Addons

    Instantly and automatically rolls on loot and equips gear upgrades from quests, dungeons, and everywhere else

    • 240.9K
    • March 3, 2026
    • Addons
    • +1
  • TradeSkillRecipeIDShower project image

    TradeSkillRecipeIDShower

    • 8.8K
    • Addons

    Adds recipe ID to the trade skill recipe details

    • 8.8K
    • February 14, 2026
    • Addons
  • ClickFriendToWhisper project image

    ClickFriendToWhisper

    • 289
    • Addons

    Enables clicking a friend in the friends list to whisper them

    • 289
    • February 11, 2026
    • Addons
  • DeleteGoodItemConfirmHelper project image

    DeleteGoodItemConfirmHelper

    • 21.4K
    • Addons

    Changes good item deletion confirmation so you can just click instead of typing "delete"

    • 21.4K
    • February 10, 2026
    • Addons