From 0c51d2ee4f62116fdfd940289e61110c8281b352 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 22 Aug 2006 00:06:29 +0000 Subject: Basic recognition of the Windows and Context Menu keys as SCK_WIN and SCK_MENU so that these keys don't commands associated with their values ('[' and ']'). SCK_WIN can be mapped on both platforms but if SCK_MENU is mapped on Windows it executes both the mapped command and shows the context menu. Called "Win" and "Menu" in SciTE but only "Win" documented. --- win32/ScintillaWin.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'win32') diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index d82d87ae8..b1ba0155b 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -396,6 +396,8 @@ static int KeyTranslate(int keyIn) { case VK_ADD: return SCK_ADD; case VK_SUBTRACT: return SCK_SUBTRACT; case VK_DIVIDE: return SCK_DIVIDE; + case VK_LWIN: return SCK_WIN; + case VK_APPS: return SCK_MENU; case VK_OEM_2: return '/'; case VK_OEM_3: return '`'; case VK_OEM_4: return '['; -- cgit v1.2.3