From 6fbafaf056d61ab0ab49cc16a998a528f0ea22e8 Mon Sep 17 00:00:00 2001 From: Geenz Date: Thu, 11 Jul 2013 18:41:16 -0400 Subject: Restore control + right click functionality. --- indra/llwindow/llopenglview-objc.mm | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'indra') diff --git a/indra/llwindow/llopenglview-objc.mm b/indra/llwindow/llopenglview-objc.mm index 8a6984091d..77c2fc7e19 100644 --- a/indra/llwindow/llopenglview-objc.mm +++ b/indra/llwindow/llopenglview-objc.mm @@ -242,12 +242,18 @@ attributedStringInfo getSegments(NSAttributedString *str) - (void) mouseDown:(NSEvent *)theEvent { - if ([theEvent clickCount] >= 2) - { - callDoubleClick(mMousePos, mModifiers); - } else if ([theEvent clickCount] == 1) { - callLeftMouseDown(mMousePos, mModifiers); - } + // Apparently people still use this? + if ([theEvent modifierFlags] & NSControlKeyMask) + { + callRightMouseDown(mMousePos, mModifiers); + } else { + if ([theEvent clickCount] >= 2) + { + callDoubleClick(mMousePos, mModifiers); + } else if ([theEvent clickCount] == 1) { + callLeftMouseDown(mMousePos, mModifiers); + } + } } - (void) mouseUp:(NSEvent *)theEvent -- cgit v1.2.3