mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
added a debug-only printf warning if the char code returned is 0
This commit is contained in:
parent
580248c300
commit
e758191f6c
@ -225,6 +225,10 @@ NS_METHOD nsDOMEvent::GetCharCode(PRUint32* aCharCode)
|
||||
case NS_KEY_UP:
|
||||
case NS_KEY_DOWN:
|
||||
*aCharCode = ((nsKeyEvent*)mEvent)->charCode;
|
||||
#ifdef NS_DEBUG
|
||||
if (0==*aCharCode)
|
||||
printf("key event broken, GetCharChode returning 0x0 as the char code.\n");
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
return NS_ERROR_FAILURE;
|
||||
|
@ -225,6 +225,10 @@ NS_METHOD nsDOMEvent::GetCharCode(PRUint32* aCharCode)
|
||||
case NS_KEY_UP:
|
||||
case NS_KEY_DOWN:
|
||||
*aCharCode = ((nsKeyEvent*)mEvent)->charCode;
|
||||
#ifdef NS_DEBUG
|
||||
if (0==*aCharCode)
|
||||
printf("key event broken, GetCharChode returning 0x0 as the char code.\n");
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
return NS_ERROR_FAILURE;
|
||||
|
Loading…
Reference in New Issue
Block a user