aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ScintillaBase.cxx
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-11-03 14:34:21 +1100
committernyamatongwe <nyamatongwe@gmail.com>2013-11-03 14:34:21 +1100
commit16a17ade5579eee392cc9a4d700cc9de0862e437 (patch)
tree54ffeebdf118ac22190d75c6c35ff3f684f27a9f /src/ScintillaBase.cxx
parent32375d1cfcf449d6947e34e414d4382241c6ef83 (diff)
downloadscintilla-mirror-16a17ade5579eee392cc9a4d700cc9de0862e437.tar.gz
Report control key as SCI_META for mouse down events for GTK+ on OS X.
Also enables more flexibility with modifier keys.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r--src/ScintillaBase.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx
index b06f72836..9190cd6d5 100644
--- a/src/ScintillaBase.cxx
+++ b/src/ScintillaBase.cxx
@@ -463,9 +463,13 @@ void ScintillaBase::CancelModes() {
Editor::CancelModes();
}
-void ScintillaBase::ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, bool alt) {
+void ScintillaBase::ButtonDownWithModifiers(Point pt, unsigned int curTime, int modifiers) {
CancelModes();
- Editor::ButtonDown(pt, curTime, shift, ctrl, alt);
+ Editor::ButtonDownWithModifiers(pt, curTime, modifiers);
+}
+
+void ScintillaBase::ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, bool alt) {
+ ButtonDownWithModifiers(pt, curTime, ModifierFlags(shift, ctrl, alt));
}
#ifdef SCI_LEXER