make sure the charCode also gets mapped

bug 5716 r=brade (sort of)
This commit is contained in:
rods%netscape.com 2000-05-11 19:24:54 +00:00
parent 3b9f583f69
commit d0fe58046f

View File

@ -2077,7 +2077,7 @@ PRBool nsWindow::DispatchKeyEvent(PRUint32 aEventType, WORD aCharCode, UINT aVir
InitEvent(event, aEventType, &point); // this add ref's event.widget
event.charCode = aCharCode;
event.charCode = !mIMEIsComposing?MapFromNativeToDOM(aCharCode):aCharCode;
event.keyCode = !mIMEIsComposing?MapFromNativeToDOM(aVirtualCharCode):aVirtualCharCode;
#ifdef KE_DEBUG