diff options
author | nyamatongwe <devnull@localhost> | 2006-08-22 00:06:29 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2006-08-22 00:06:29 +0000 |
commit | 0c51d2ee4f62116fdfd940289e61110c8281b352 (patch) | |
tree | 54a6a696533a2b428c6858f893921c0de6e34ca8 /win32/ScintillaWin.cxx | |
parent | 7ac09f3253d144807e27b84992ce8a8bf5acb8fb (diff) | |
download | scintilla-mirror-0c51d2ee4f62116fdfd940289e61110c8281b352.tar.gz |
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.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r-- | win32/ScintillaWin.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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 '['; |