summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2011-05-16 04:47:53 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2011-05-16 04:47:53 +0000
commite332b442b9d22b948956a681b0614708303c5976 (patch)
treef2884766ec65e43e87bab7468b1a88638f104ccf
parent10d1be3ed9960984e49f45f1958c5e12da1050cd (diff)
downloadedk2-platforms-e332b442b9d22b948956a681b0614708303c5976.tar.xz
InOsEmuPkg/Unix: Return scan code for Pause key
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
-rw-r--r--InOsEmuPkg/Unix/Sec/X11GraphicsWindow.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/InOsEmuPkg/Unix/Sec/X11GraphicsWindow.c b/InOsEmuPkg/Unix/Sec/X11GraphicsWindow.c
index 1920f33c99..35a60fc4af 100644
--- a/InOsEmuPkg/Unix/Sec/X11GraphicsWindow.c
+++ b/InOsEmuPkg/Unix/Sec/X11GraphicsWindow.c
@@ -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;