From 840ee719e58afb4cf2e30acda70a3354e380eba9 Mon Sep 17 00:00:00 2001 From: Volker Ruppert Date: Mon, 26 Nov 2001 07:24:16 +0000 Subject: [PATCH] - exchange the scancode of "Numlock" and "Pause", numlock works again --- bochs/gui/win32.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bochs/gui/win32.cc b/bochs/gui/win32.cc index 1d848c24d..75d569ced 100644 --- a/bochs/gui/win32.cc +++ b/bochs/gui/win32.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: win32.cc,v 1.19 2001-11-23 18:03:23 vruppert Exp $ +// $Id: win32.cc,v 1.20 2001-11-26 07:24:16 vruppert Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. @@ -605,8 +605,8 @@ void bx_gui_c::handle_events(void) { headerbar_click(LOWORD(key)); } else { - // Its an extended key - if (key & 0x0100) { + if (((key & 0x0100) && ((key & 0x01ff) != 0x0145)) | ((key & 0x01ff) == 0x45)) { + // Its an extended key scancode = 0xE0; bx_devices.keyboard->put_scancode(&scancode, 1); }