mirror of https://github.com/acidanthera/audk.git
Pass ECC check.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7455 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
a676b86b67
commit
ed3a31b518
|
@ -611,7 +611,7 @@ SetKeyboardLayoutEvent (
|
|||
NsKey = KeyDescriptor + 1;
|
||||
for (Index2 = Index + 1; Index2 < KeyboardLayout->DescriptorCount; Index2++) {
|
||||
CopyMem (&TempKey, NsKey, sizeof (EFI_KEY_DESCRIPTOR));
|
||||
if (TempKey.Modifier & EFI_NS_KEY_DEPENDENCY_MODIFIER) {
|
||||
if (TempKey.Modifier == EFI_NS_KEY_DEPENDENCY_MODIFIER) {
|
||||
KeyCount++;
|
||||
} else {
|
||||
break;
|
||||
|
@ -1654,7 +1654,7 @@ UsbKeyCodeToEfiInputKey (
|
|||
}
|
||||
}
|
||||
|
||||
if (KeyDescriptor->AffectedAttribute & EFI_AFFECTED_BY_NUM_LOCK) {
|
||||
if ((KeyDescriptor->AffectedAttribute & EFI_AFFECTED_BY_NUM_LOCK) != 0) {
|
||||
//
|
||||
// For key affected by NumLock, if NumLock is on and Shift is not pressed, then it means
|
||||
// normal key, instead of original control key. So the ScanCode should be cleaned.
|
||||
|
|
Loading…
Reference in New Issue