mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Use GetKeyCode instead of GetCharCode for windows and linux
This commit is contained in:
parent
9ad4e38dde
commit
fb53300e61
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user