diff options
author | nyamatongwe <devnull@localhost> | 2011-06-15 21:16:29 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-06-15 21:16:29 +1000 |
commit | 7fa8fc1c3cded6bfb0ebe756009a7a1da0d5ffe9 (patch) | |
tree | 78a095c57b510e9b77ff2d57aa16a163def07acc | |
parent | c324a93c5b9c104dafac98a30119aeeb1c60bcbc (diff) | |
download | scintilla-mirror-7fa8fc1c3cded6bfb0ebe756009a7a1da0d5ffe9.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.mm | 4 |
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); } //-------------------------------------------------------------------------------------------------- |