зеркало из https://github.com/mozilla/gecko-dev.git
Fix for 53771, Mac only key event fix. r=sfraser, a=hyatt rtm++
This commit is contained in:
Родитель
22145f6f94
Коммит
f56703df2e
|
@ -801,6 +801,9 @@ void nsMacEventHandler::InitializeKeyEvent(nsKeyEvent& aKeyEvent, EventRecord& a
|
|||
|
||||
aKeyEvent.keyCode = 0;
|
||||
aKeyEvent.charCode = ConvertKeyEventToUnicode(aOSEvent);
|
||||
if(aKeyEvent.isShift && aKeyEvent.charCode <= 'z' && aKeyEvent.charCode >= 'a') {
|
||||
aKeyEvent.charCode -= 32;
|
||||
}
|
||||
NS_ASSERTION(0 != aKeyEvent.charCode, "nsMacEventHandler::InitializeKeyEvent: ConvertKeyEventToUnicode returned 0.");
|
||||
} // else for if ( aKeyEvent.isControl )
|
||||
} // if (message == NS_KEY_PRESS && !IsSpecialRaptorKey((aOSEvent.message & keyCodeMask) >> 8) )
|
||||
|
|
Загрузка…
Ссылка в новой задаче