Fix NT32 Keyboard driver to call hotkey callback even no one is calling ReadKeyStroke().
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11561 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -697,7 +697,7 @@ WinNtGopThreadWindowProc (
|
||||
case VK_F10:
|
||||
Key.ScanCode = SCAN_F10;
|
||||
Key.UnicodeChar = 0;
|
||||
GopPrivateAddQ (Private, Key);
|
||||
GopPrivateAddKey (Private, Key);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -720,7 +720,7 @@ WinNtGopThreadWindowProc (
|
||||
|
||||
if (Key.ScanCode != 0) {
|
||||
Key.UnicodeChar = 0;
|
||||
GopPrivateAddQ (Private, Key);
|
||||
GopPrivateAddKey (Private, Key);
|
||||
}
|
||||
|
||||
return 0;
|
||||
@@ -749,7 +749,7 @@ WinNtGopThreadWindowProc (
|
||||
WinNtGopConvertParamToEfiKey (Private, &wParam, &Key);
|
||||
if (Key.ScanCode != 0) {
|
||||
Key.UnicodeChar = 0;
|
||||
GopPrivateAddQ (Private, Key);
|
||||
GopPrivateAddKey (Private, Key);
|
||||
}
|
||||
|
||||
return 0;
|
||||
@@ -770,7 +770,7 @@ WinNtGopThreadWindowProc (
|
||||
if (wParam != 0) {
|
||||
Key.UnicodeChar = (CHAR16) wParam;
|
||||
Key.ScanCode = 0;
|
||||
GopPrivateAddQ (Private, Key);
|
||||
GopPrivateAddKey (Private, Key);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user