aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/ScintillaGTK.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2006-08-22 00:06:29 +0000
committernyamatongwe <devnull@localhost>2006-08-22 00:06:29 +0000
commit0c51d2ee4f62116fdfd940289e61110c8281b352 (patch)
tree54a6a696533a2b428c6858f893921c0de6e34ca8 /gtk/ScintillaGTK.cxx
parent7ac09f3253d144807e27b84992ce8a8bf5acb8fb (diff)
downloadscintilla-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 'gtk/ScintillaGTK.cxx')
-rw-r--r--gtk/ScintillaGTK.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 689475196..9b7a0baae 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -1945,6 +1945,10 @@ static int KeyTranslate(int keyIn) {
return SCK_SUBTRACT;
case GDK_KP_Divide:
return SCK_DIVIDE;
+ case GDK_Super_L:
+ return SCK_WIN;
+ case GDK_Menu:
+ return SCK_MENU;
default:
return keyIn;
}