зеркало из https://github.com/mozilla/gecko-dev.git
Bug 119109: Accelerator keybindings are screwed up. Fixing today's wannabe blocker (simple typo in harish's ports bustage fix), r=peterv.
This commit is contained in:
Родитель
9a5a5969de
Коммит
465eef0294
|
@ -1027,15 +1027,14 @@ nsXBLPrototypeHandler::ConstructPrototype(nsIContent* aKeyElement,
|
|||
}
|
||||
|
||||
if (!key.IsEmpty()) {
|
||||
nsAutoString charCode(aCharCode);
|
||||
if ((mKeyMask & cShift) != 0)
|
||||
ToUpperCase(charCode);
|
||||
ToUpperCase(key);
|
||||
else
|
||||
ToLowerCase(charCode);
|
||||
ToLowerCase(key);
|
||||
|
||||
// We have a charcode.
|
||||
mMisc = 1;
|
||||
mDetail = charCode[0];
|
||||
mDetail = key[0];
|
||||
}
|
||||
else {
|
||||
key.Assign(aKeyCode);
|
||||
|
|
Загрузка…
Ссылка в новой задаче