Use GetKeyCode instead of GetCharCode for windows and linux

This commit is contained in:
saari%netscape.com 1999-07-18 00:07:10 +00:00
parent 9ad4e38dde
commit fb53300e61

View File

@ -264,11 +264,11 @@ nsresult nsXULKeyListenerImpl::DoKey(nsIDOMEvent* aKeyEvent, eEventType aEventTy
keyElement->GetAttribute(nsAutoString("disabled"), disabled);
if (disabled == "false") {
PRUint32 theChar;
#ifdef XP_PC
theEvent->GetCharCode(&theChar);
#else
// #ifdef XP_PC
// theEvent->GetCharCode(&theChar);
// #else
theEvent->GetKeyCode(&theChar);
#endif
// #endif
//printf("event key [%c] \n", theChar); // this leaks
char tempChar[2];