Ticket #3194: reproduce_bug.patch

File reproduce_bug.patch, 692 bytes (added by elexis, 7 years ago)

Reproduces the underlying bug that was addressed by the commit.

  • source/gui/CGUI.cpp

    InReaction CGUI::HandleEvent(const SDL_E  
    7373
    7474        std::map<CStr, std::vector<IGUIObject*> >::iterator it = m_HotkeyObjects.find(hotkey);
    7575        if (it != m_HotkeyObjects.end())
    7676            for (IGUIObject* const& obj : it->second)
    7777            {
    78                 // Update hotkey status before sending the event,
    79                 // else the status will be outdated when processing the GUI event.
    80                 HotkeyInputHandler(ev);
    8178                ret = IN_HANDLED;
    8279
    8380                if (ev->ev.type == SDL_HOTKEYDOWN)
    8481                    obj->SendEvent(GUIM_PRESSED, "press");
    8582                else