Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/_macosx.m
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,8 @@ int mpl_check_modifier(
return NULL;
}

Py_BEGIN_ALLOW_THREADS

NSDate* date =
(timeout > 0.0) ? [NSDate dateWithTimeIntervalSinceNow: timeout]
: [NSDate distantFuture];
Expand All @@ -473,6 +475,8 @@ int mpl_check_modifier(
[NSApp sendEvent: event];
}

Py_END_ALLOW_THREADS

Py_RETURN_NONE;
}

Expand Down