Skip to content

Commit bd82fc4

Browse files
committed
Corrected a couple of typos in the macosx backend support for double clicking. This
backend works now.
1 parent 3ce0e06 commit bd82fc4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/_macosx.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5128,7 +5128,7 @@ - (void)mouseDown:(NSEvent *)event
51285128
case NSRightMouseDown: num = 3; break;
51295129
default: return; /* Unknown mouse event */
51305130
}
5131-
if ([event clickCount] == 2]) {
5131+
if ([event clickCount] == 2) {
51325132
dblclick = 1;
51335133
}
51345134
gstate = PyGILState_Ensure();
@@ -5217,7 +5217,7 @@ - (void)rightMouseDown:(NSEvent *)event
52175217
x = location.x;
52185218
y = location.y;
52195219
gstate = PyGILState_Ensure();
5220-
if ([event clickCount] == 2]) {
5220+
if ([event clickCount] == 2) {
52215221
dblclick = 1;
52225222
}
52235223
result = PyObject_CallMethod(canvas, "button_press_event", "iiii", x, y, num, dblclick);
@@ -5278,7 +5278,7 @@ - (void)otherMouseDown:(NSEvent *)event
52785278
x = location.x;
52795279
y = location.y;
52805280
gstate = PyGILState_Ensure();
5281-
if ([event clickCount] == 2]) {
5281+
if ([event clickCount] == 2) {
52825282
dblclick = 1;
52835283
}
52845284
result = PyObject_CallMethod(canvas, "button_press_event", "iiii", x, y, num, dblclick);

0 commit comments

Comments
 (0)