Restore control + right click functionality.

meow-7.2.2
Geenz 2013-07-11 18:41:16 -04:00
parent bb8ff8707c
commit 6fbafaf056
1 changed files with 12 additions and 6 deletions

View File

@ -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