From 7fa8fc1c3cded6bfb0ebe756009a7a1da0d5ffe9 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 15 Jun 2011 21:16:29 +1000 Subject: 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. --- cocoa/ScintillaCocoa.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cocoa') 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); } //-------------------------------------------------------------------------------------------------- -- cgit v1.2.3