diff options
Diffstat (limited to 'xfa/src')
-rw-r--r-- | xfa/src/fwl/src/core/fwl_widgetimp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/src/fwl/src/core/fwl_widgetimp.cpp b/xfa/src/fwl/src/core/fwl_widgetimp.cpp index 95e235d12a..c48bfb9ca9 100644 --- a/xfa/src/fwl/src/core/fwl_widgetimp.cpp +++ b/xfa/src/fwl/src/core/fwl_widgetimp.cpp @@ -832,12 +832,12 @@ void CFWL_WidgetImp::UnregisterEventTarget() { void CFWL_WidgetImp::DispatchKeyEvent(CFWL_MsgKey* pNote) {
if (!pNote)
return;
- CFWL_MsgKey* pEvent = (CFWL_MsgKey*)pNote->CloneToEvent();
+ CFWL_EvtKey* pEvent = new CFWL_EvtKey;
pEvent->m_pSrcTarget = m_pInterface;
pEvent->m_dwCmd = pNote->m_dwCmd;
pEvent->m_dwKeyCode = pNote->m_dwKeyCode;
pEvent->m_dwFlags = pNote->m_dwFlags;
- DispatchEvent((CFWL_Event*)pEvent);
+ DispatchEvent(pEvent);
pEvent->Release();
}
void CFWL_WidgetImp::DispatchEvent(CFWL_Event* pEvent) {
|