diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2018-01-19 15:59:38 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2018-02-01 14:04:12 +0800 |
commit | 821807bcefb9a36e598d71a8004fae5aab2052a0 (patch) | |
tree | 8abec47780692bbf5ac159a9a5b7f11e7bb212d9 /IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.h | |
parent | 896ae6fc24e04a2068ae84902b7d3426294f342d (diff) | |
download | edk2-821807bcefb9a36e598d71a8004fae5aab2052a0.tar.gz edk2-821807bcefb9a36e598d71a8004fae5aab2052a0.tar.bz2 edk2-821807bcefb9a36e598d71a8004fae5aab2052a0.zip |
IntelFrameworkModule/ThunkKb: ReadKeyStrokeEx always return key state
Today's implementation only return key state when there is a key.
But when user doesn't press any key, the key state cannot be
returned.
The patch changes the ReadKeyStrokeEx() to always return the
key state even there is no key pressed.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.h')
-rw-r--r-- | IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.h b/IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.h index c64ec0095e..5300eaa0ab 100644 --- a/IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.h +++ b/IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.h @@ -1,6 +1,6 @@ /** @file
-Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions
@@ -220,7 +220,8 @@ typedef struct { UINT16 StatusRegisterAddress;
UINT16 CommandRegisterAddress;
BOOLEAN ExtendedKeyboard;
-
+
+ EFI_KEY_STATE KeyState;
//
// Buffer storing EFI_KEY_DATA
//
|