Patch to tkMacOSXEvent.c, tkMacOSXKeyEvent.c, tkMacOSXMouseEvent.c, tkMacOSXNotify.c, tkMacOSXPrivate.h. This patch is relative to the source code after applying this patch: