diff options
author | nyamatongwe <unknown> | 2006-08-22 00:06:29 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2006-08-22 00:06:29 +0000 |
commit | 3b2ada7a95cc1f0e990963980ee1e5d67c865e1e (patch) | |
tree | 54a6a696533a2b428c6858f893921c0de6e34ca8 /win32 | |
parent | d6ff99188499850e812633922ff240299dda65f1 (diff) | |
download | scintilla-mirror-3b2ada7a95cc1f0e990963980ee1e5d67c865e1e.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')
-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 '['; |