Ticket #3194: reproduce_bug.patch
File reproduce_bug.patch, 692 bytes (added by , 7 years ago) |
---|
-
source/gui/CGUI.cpp
InReaction CGUI::HandleEvent(const SDL_E 73 73 74 74 std::map<CStr, std::vector<IGUIObject*> >::iterator it = m_HotkeyObjects.find(hotkey); 75 75 if (it != m_HotkeyObjects.end()) 76 76 for (IGUIObject* const& obj : it->second) 77 77 { 78 // Update hotkey status before sending the event,79 // else the status will be outdated when processing the GUI event.80 HotkeyInputHandler(ev);81 78 ret = IN_HANDLED; 82 79 83 80 if (ev->ev.type == SDL_HOTKEYDOWN) 84 81 obj->SendEvent(GUIM_PRESSED, "press"); 85 82 else