aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-06-15 21:16:29 +1000
committernyamatongwe <unknown>2011-06-15 21:16:29 +1000
commite43cc031927b46462f72fbd19e32ef8378812bdc (patch)
treed626e555d13e6b1b448c242b87520fed47dd56bf
parentb327946014139b1555403e56426472d5aa3d4cec (diff)
downloadscintilla-mirror-e43cc031927b46462f72fbd19e32ef8378812bdc.tar.gz
Change mouse drag modifier keys for compatibility with Apple Human
Interface Guidelines and other applications. Alt is for rectangular selection and Command for discontinuous selection.
-rw-r--r--cocoa/ScintillaCocoa.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm
index 9128f12e1..f3acfc1e1 100644
--- a/cocoa/ScintillaCocoa.mm
+++ b/cocoa/ScintillaCocoa.mm
@@ -1537,9 +1537,9 @@ void ScintillaCocoa::MouseDown(NSEvent* event)
NSTimeInterval time = [event timestamp];
bool command = ([event modifierFlags] & NSCommandKeyMask) != 0;
bool shift = ([event modifierFlags] & NSShiftKeyMask) != 0;
- bool control = ([event modifierFlags] & NSControlKeyMask) != 0;
+ bool alt = ([event modifierFlags] & NSAlternateKeyMask) != 0;
- ButtonDown(Point(location.x, location.y), (int) (time * 1000), shift, control, command);
+ ButtonDown(Point(location.x, location.y), (int) (time * 1000), shift, command, alt);
}
//--------------------------------------------------------------------------------------------------