X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8bd9fa338ed307031e4c1a43308210205f9a6384..58d439cf5a3d65cdb964973e111ab9dd208deab9:/src/common/event.cpp diff --git a/src/common/event.cpp b/src/common/event.cpp index 4f9c74adc3..7d98a3e6d0 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -761,7 +761,6 @@ wxKeyEvent::wxKeyEvent(wxEventType type) { m_eventType = type; m_keyCode = 0; - m_scanCode = 0; #if wxUSE_UNICODE m_uniChar = 0; #endif @@ -775,8 +774,6 @@ wxKeyEvent::wxKeyEvent(const wxKeyEvent& evt) m_y = evt.m_y; m_keyCode = evt.m_keyCode; - - m_scanCode = evt.m_scanCode; m_rawCode = evt.m_rawCode; m_rawFlags = evt.m_rawFlags; @@ -1313,27 +1310,6 @@ bool wxEvtHandler::ProcessEvent(wxEvent& event) { if ( wxTheApp ) { -/* - CANNOT ENABLE: ProcessEvent() must always immediately process the event! - - if (wxTheApp->IsYielding() && - !wxTheApp->IsEventAllowedInsideYield(event.GetEventCategory())) - { - wxEvent* queuedEv = event.Clone(); - - // queue this event rather than processing it now - QueueEvent(queuedEv); - // the wxWakeUpIdle call shouldn't probably be done - // in this context (there's wxYield in the call stack) - - return true; - // it's not completely true that the event was processed; - // but we cannot even say it was skipped or discarded... - } - //else: either we're not inside a wxYield() call or if we are, - // we can process this event immediately. -*/ - int rc = wxTheApp->FilterEvent(event); if ( rc != -1 ) {