#We don't want to do anything with the event if the event is not for the window this console is in\r
if window!=consoleObject.windowHandle:\r
return\r
- if eventID==winUser.EVENT_CONSOLE_CARET:\r
+ if eventID==winUser.EVENT_CONSOLE_CARET and not eventHandler.isPendingEvents("caret",consoleObject):\r
eventHandler.queueEvent("caret",consoleObject)\r
# It is safe to call this event from this callback.\r
# This avoids an extra core cycle.\r