Add the backslash to C12 mapping in keyboard layout mapping table to fix the issue that backslash doesn't work when using HP KU-0316 USB key board.
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Ting Ye <ting.ye@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14209 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
				
			|||||||
/** @file
 | 
					/** @file
 | 
				
			||||||
  Helper functions for USB Keyboard Driver.
 | 
					  Helper functions for USB Keyboard Driver.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Copyright (c) 2004 - 2012, Intel Corporation. All rights reserved.<BR>
 | 
					Copyright (c) 2004 - 2013, Intel Corporation. All rights reserved.<BR>
 | 
				
			||||||
This program and the accompanying materials
 | 
					This program and the accompanying materials
 | 
				
			||||||
are licensed and made available under the terms and conditions of the BSD License
 | 
					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
 | 
					which accompanies this distribution.  The full text of the license may be found at
 | 
				
			||||||
@@ -79,6 +79,7 @@ USB_KEYBOARD_LAYOUT_PACK_BIN  mUsbKeyboardLayoutBin = {
 | 
				
			|||||||
    {EfiKeyD11,        '[',      '{',  0, 0,  EFI_NULL_MODIFIER,   EFI_AFFECTED_BY_STANDARD_SHIFT},
 | 
					    {EfiKeyD11,        '[',      '{',  0, 0,  EFI_NULL_MODIFIER,   EFI_AFFECTED_BY_STANDARD_SHIFT},
 | 
				
			||||||
    {EfiKeyD12,        ']',      '}',  0, 0,  EFI_NULL_MODIFIER,   EFI_AFFECTED_BY_STANDARD_SHIFT},
 | 
					    {EfiKeyD12,        ']',      '}',  0, 0,  EFI_NULL_MODIFIER,   EFI_AFFECTED_BY_STANDARD_SHIFT},
 | 
				
			||||||
    {EfiKeyD13,        '\\',     '|',  0, 0,  EFI_NULL_MODIFIER,   EFI_AFFECTED_BY_STANDARD_SHIFT},
 | 
					    {EfiKeyD13,        '\\',     '|',  0, 0,  EFI_NULL_MODIFIER,   EFI_AFFECTED_BY_STANDARD_SHIFT},
 | 
				
			||||||
 | 
					    {EfiKeyC12,        '\\',     '|',  0, 0,  EFI_NULL_MODIFIER,   EFI_AFFECTED_BY_STANDARD_SHIFT},
 | 
				
			||||||
    {EfiKeyC10,        ';',      ':',  0, 0,  EFI_NULL_MODIFIER,   EFI_AFFECTED_BY_STANDARD_SHIFT},
 | 
					    {EfiKeyC10,        ';',      ':',  0, 0,  EFI_NULL_MODIFIER,   EFI_AFFECTED_BY_STANDARD_SHIFT},
 | 
				
			||||||
    {EfiKeyC11,        '\'',     '"',  0, 0,  EFI_NULL_MODIFIER,   EFI_AFFECTED_BY_STANDARD_SHIFT},
 | 
					    {EfiKeyC11,        '\'',     '"',  0, 0,  EFI_NULL_MODIFIER,   EFI_AFFECTED_BY_STANDARD_SHIFT},
 | 
				
			||||||
    {EfiKeyE0,         '`',      '~',  0, 0,  EFI_NULL_MODIFIER,   EFI_AFFECTED_BY_STANDARD_SHIFT},
 | 
					    {EfiKeyE0,         '`',      '~',  0, 0,  EFI_NULL_MODIFIER,   EFI_AFFECTED_BY_STANDARD_SHIFT},
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
/** @file
 | 
					/** @file
 | 
				
			||||||
  Function prototype for USB Keyboard Driver.
 | 
					  Function prototype for USB Keyboard Driver.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>
 | 
					Copyright (c) 2004 - 2013, Intel Corporation. All rights reserved.<BR>
 | 
				
			||||||
This program and the accompanying materials
 | 
					This program and the accompanying materials
 | 
				
			||||||
are licensed and made available under the terms and conditions of the BSD License
 | 
					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
 | 
					which accompanies this distribution.  The full text of the license may be found at
 | 
				
			||||||
@@ -18,7 +18,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include "EfiKey.h"
 | 
					#include "EfiKey.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define USB_KEYBOARD_KEY_COUNT            104
 | 
					#define USB_KEYBOARD_KEY_COUNT            105
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define USB_KEYBOARD_LANGUAGE_STR_LEN     5         // RFC4646 Language Code: "en-US"
 | 
					#define USB_KEYBOARD_LANGUAGE_STR_LEN     5         // RFC4646 Language Code: "en-US"
 | 
				
			||||||
#define USB_KEYBOARD_DESCRIPTION_STR_LEN  (16 + 1)  // Description: "English Keyboard"
 | 
					#define USB_KEYBOARD_DESCRIPTION_STR_LEN  (16 + 1)  // Description: "English Keyboard"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user