mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Adding DOM access to new character information
This commit is contained in:
parent
1d2db0ce5c
commit
2874bb3300
@ -221,7 +221,15 @@ NS_METHOD nsDOMEvent::SetMetaKey(PRBool aMetaKey)
|
||||
|
||||
NS_METHOD nsDOMEvent::GetCharCode(PRUint32* aCharCode)
|
||||
{
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
switch (mEvent->message) {
|
||||
case NS_KEY_UP:
|
||||
case NS_KEY_DOWN:
|
||||
*aCharCode = ((nsKeyEvent*)mEvent)->charCode;
|
||||
break;
|
||||
default:
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_METHOD nsDOMEvent::SetCharCode(PRUint32 aCharCode)
|
||||
|
@ -221,7 +221,15 @@ NS_METHOD nsDOMEvent::SetMetaKey(PRBool aMetaKey)
|
||||
|
||||
NS_METHOD nsDOMEvent::GetCharCode(PRUint32* aCharCode)
|
||||
{
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
switch (mEvent->message) {
|
||||
case NS_KEY_UP:
|
||||
case NS_KEY_DOWN:
|
||||
*aCharCode = ((nsKeyEvent*)mEvent)->charCode;
|
||||
break;
|
||||
default:
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_METHOD nsDOMEvent::SetCharCode(PRUint32 aCharCode)
|
||||
|
Loading…
Reference in New Issue
Block a user