Skip to content

Commit

Permalink
Pkg-Module: Features/VirtualKeyboardDxe PART 2
Browse files Browse the repository at this point in the history
The Keyboard.c driver did not include ScanCodes like F1,F2,F12,etc.
and UnicodeChars like Backspace, Tab in VK_NOTIFY NotifyList
which is why these keys were not getting registered and
not getting pushed in the KeyBuffer stack which resulted
in undefined behavior of continuous backspace and not recognizing the
relevant key push after the buffer overflow condition.
  • Loading branch information
darbin-reyes committed Nov 28, 2024
1 parent 1b0369a commit d1bcb20
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,7 @@ VkApiStart (
KeyData.KeyState.KeyShiftState = 0;
KeyData.Key.ScanCode = SCAN_NULL;
NotifyHandle = NULL;
KeyData.Key.UnicodeChar = CHAR_NULL;

for (KeyData.Key.ScanCode = SCAN_UP; KeyData.Key.ScanCode <= SCAN_ESC; KeyData.Key.ScanCode++) {
Status = SimpleEx->RegisterKeyNotify (
Expand Down

0 comments on commit d1bcb20

Please sign in to comment.