Skip to content
Snippets Groups Projects
Commit 4270347b authored by Jack Chen (chendo)'s avatar Jack Chen (chendo)
Browse files

Fixed up an if statement that was causing the shift key to not work

parent 7a1dd024
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -2212,7 +2212,6 @@ static BOOL RectsEqual(NSRect* a, NSRect* b) {
t = startX; startX = endX; endX = t;
} else if ([mouseDownEvent locationInWindow].x == [event locationInWindow].x &&
[mouseDownEvent locationInWindow].y == [event locationInWindow].y &&
!([event modifierFlags] & NSShiftKeyMask) &&
[event clickCount] < 2 &&
!mouseDragged) {
// Just a click in the window.
Loading
Loading
@@ -2224,7 +2223,7 @@ static BOOL RectsEqual(NSRect* a, NSRect* b) {
// Command click in place.
NSString *url = [self _getURLForX:x y:y];
if (url &&[event modifierFlags] & NSShiftKeyMask) {
if (url && [event modifierFlags] & NSShiftKeyMask) {
NSString *fullPath = [trouter getFullPath:url
workingDirectory:[self getWorkingDirectoryAtLine:y + 1]
lineNumber:nil];
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment