From bdc97710e0722f8b5a82d3b9ce471e2f1aec4dfe Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Wed, 25 Aug 2010 17:03:38 +0000 Subject: [PATCH] * Source/win32/WIN32Server.m: Handle Page Down and Page Up keys, as well as adding a few others. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31200 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/win32/WIN32Server.m | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 69e0130..cbb0a1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-08-24 Eric Wasylishen + + * Source/win32/WIN32Server.m: Handle Page Down and Page Up keys, + as well as adding a few others. + 2010-08-24 Eric Wasylishen * Headers/win32/WIN32Server.h: diff --git a/Source/win32/WIN32Server.m b/Source/win32/WIN32Server.m index 8efc6af..e5f2b66 100644 --- a/Source/win32/WIN32Server.m +++ b/Source/win32/WIN32Server.m @@ -1674,20 +1674,21 @@ process_char(WPARAM wParam, unsigned *eventModifierFlags) case VK_RIGHT: WIN_FUNCTIONKEY return NSRightArrowFunctionKey; case VK_UP: WIN_FUNCTIONKEY return NSUpArrowFunctionKey; case VK_DOWN: WIN_FUNCTIONKEY return NSDownArrowFunctionKey; - case VK_PRIOR: WIN_FUNCTIONKEY return NSPrevFunctionKey; - case VK_NEXT: WIN_FUNCTIONKEY return NSNextFunctionKey; + case VK_PRIOR: WIN_FUNCTIONKEY return NSPageUpFunctionKey; + case VK_NEXT: WIN_FUNCTIONKEY return NSPageDownFunctionKey; case VK_END: WIN_FUNCTIONKEY return NSEndFunctionKey; - //case VK_BEGIN: WIN_FUNCTIONKEY return NSBeginFunctionKey; case VK_SELECT: WIN_FUNCTIONKEY return NSSelectFunctionKey; case VK_PRINT: WIN_FUNCTIONKEY return NSPrintFunctionKey; + case VK_SNAPSHOT: WIN_FUNCTIONKEY return NSPrintScreenFunctionKey; case VK_EXECUTE: WIN_FUNCTIONKEY return NSExecuteFunctionKey; case VK_INSERT: WIN_FUNCTIONKEY return NSInsertFunctionKey; case VK_HELP: WIN_FUNCTIONKEY return NSHelpFunctionKey; case VK_CANCEL: WIN_FUNCTIONKEY return NSBreakFunctionKey; - //case VK_MODECHANGE: WIN_FUNCTIONKEY return NSModeSwitchFunctionKey; + case VK_MODECHANGE: WIN_FUNCTIONKEY return NSModeSwitchFunctionKey; case VK_SCROLL: WIN_FUNCTIONKEY return NSScrollLockFunctionKey; case VK_PAUSE: WIN_FUNCTIONKEY return NSPauseFunctionKey; case VK_OEM_CLEAR: WIN_FUNCTIONKEY return NSClearDisplayFunctionKey; + case VK_CLEAR: WIN_FUNCTIONKEY return NSClearLineFunctionKey; #undef WIN_FUNCTIONKEY default: return 0;