]> git.proxmox.com Git - mirror_edk2.git/commitdiff
InOsEmuPkg/Unix: Return scan code for Pause key
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 16 May 2011 04:47:53 +0000 (04:47 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 16 May 2011 04:47:53 +0000 (04:47 +0000)
Port of UnixPkg r11659 change.

Signed-off-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11663 6f19259b-4bc3-4df7-8a09-765794883524

InOsEmuPkg/Unix/Sec/X11GraphicsWindow.c

index 1920f33c99610124e18a54fdf005a7eb3f0d3978..35a60fc4afd4932229df4bdc0c69b138034dc9ed 100644 (file)
@@ -1,14 +1,15 @@
 /*++ @file
 
-Copyright (c) 2004 - 2009, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>
 Portions copyright (c) 2008 - 2011, Apple Inc. 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        
-http://opensource.org/licenses/bsd-license.php                                            
-                                                                                          
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
+
+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
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 
 **/
 
@@ -342,7 +343,8 @@ handleKeyEvent(GRAPHICS_IO_PRIVATE *drv, XEvent *ev, BOOLEAN Make)
   
   case XK_Escape:     KeyData.Key.ScanCode = SCAN_ESC;        break;
 
-  
+  case XK_Pause:      KeyData.Key.ScanCode = SCAN_PAUSE;      break;
+
   case XK_KP_F1:
   case XK_F1:   KeyData.Key.ScanCode = SCAN_F1;   break;