mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
Fix a bug which cause a CRTL, ALT, or SHIFT is pressed on the GOP console for NT32, it inserts a ' 'character character.
Root cause is that the parameter of UnicodeStr doesn’t initialize. Signed-off-by: qianouyang Reviewed-by: niruiyu git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12575 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
501793fad4
commit
af1600fd9a
@ -816,14 +816,12 @@ WinNtGopThreadWindowProc (
|
||||
|
||||
case WM_KEYDOWN:
|
||||
Key.ScanCode = SCAN_NULL;
|
||||
Key.UnicodeChar = CHAR_NULL;
|
||||
//
|
||||
// A value key press will cause a WM_KEYDOWN first, then cause a WM_CHAR
|
||||
// So if there is no modifier key updated, skip the WM_KEYDOWN even.
|
||||
//
|
||||
if (WinNtGopConvertParamToEfiKey (Private, &wParam, &lParam, &Key)) {
|
||||
if (Key.ScanCode != SCAN_NULL) {
|
||||
Key.UnicodeChar = CHAR_NULL;
|
||||
}
|
||||
//
|
||||
// Support the partial keystroke, add all keydown event into the queue.
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user