Skip to content
This repository has been archived by the owner on Aug 6, 2019. It is now read-only.

Commit

Permalink
Fix shift support on the latest APTIO on Dell laptops
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Sep 14, 2018
1 parent 901c593 commit 10194f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Platform/AptioInputFix/Keycode/AIKTranslate.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ AIKTranslateModifiers (
//
// Handle EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL Shift support, which is not included
// in KeyShiftState on APTIO and VMware.
// UPD: Recent APTIO V also does not include it in its own protocol.
//
if ((KeyShiftState & EFI_SHIFT_STATE_VALID) && KeyData->PS2ScanCodeIsValid == 0
&& KeyData->Key.UnicodeChar < AIK_MAX_EFIKEY_NUM) {
if ((KeyShiftState & EFI_SHIFT_STATE_VALID) && KeyData->Key.UnicodeChar < AIK_MAX_EFIKEY_NUM) {
KeyShiftState |= gAikAsciiToUsbMap[KeyData->Key.UnicodeChar].ShiftState;
}

Expand Down Expand Up @@ -192,7 +192,7 @@ AIKTranslate (
DEBUG ((EFI_D_ERROR, "\nAIKTranslate P1 MOD %a APPLE 0x%X (%a) PS2 0x%X Ps2Name %a\n",
AIK_MODIFIERS_TO_NAME (*Modifiers), *Key, AIK_APPLEKEY_TO_NAME (*Key),
KeyData->PS2ScanCode, AIK_PS2KEY_TO_NAME (KeyData->PS2ScanCode, *Modifiers)));
DEBUG ((EFI_D_ERROR, "AIKTranslate P2 AsciiName %a ScanName %a EfiKey %a Scan 0x%XUni 0x%X SState 0x%X\n",
DEBUG ((EFI_D_ERROR, "AIKTranslate P2 AsciiName %a ScanName %a EfiKey %a Scan 0x%X Uni 0x%X SState 0x%X\n",
AIK_ASCII_TO_NAME (KeyData->Key.UnicodeChar), AIK_SCANCODE_TO_NAME (KeyData->Key.ScanCode),
AIK_EFIKEY_TO_NAME (KeyData->EfiKey), KeyData->Key.ScanCode, KeyData->Key.UnicodeChar, KeyData->KeyState.KeyShiftState));
}
Expand Down

0 comments on commit 10194f6

Please sign in to comment.