Ticket #3194: alternative_working_but_seems_wrong.patch
File alternative_working_but_seems_wrong.patch, 747 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 ret = IN_HANDLED;82 83 78 if (ev->ev.type == SDL_HOTKEYDOWN) 84 79 obj->SendEvent(GUIM_PRESSED, "press"); 85 80 else 86 81 obj->SendEvent(GUIM_RELEASED, "release"); 87 82 }