No, I wanted to both reset and flush the queue.

This commit is contained in:
Steve Checkoway
2006-09-08 05:05:09 +00:00
parent 00be7b5462
commit d9e7fc0ecd
@@ -14,9 +14,13 @@ static CFOptionFlags ShowAlert( CFOptionFlags flags, const RString& sMessage, CF
CFUserNotificationDisplayAlert( 0.0, flags, NULL, NULL, NULL, CFSTR(PRODUCT_FAMILY),
text, OK, alt, other, &result );
// Flush all input that's accumulated while the dialog box was up.
INPUTFILTER->Reset();
CFRelease( text );
// Flush all input that's accumulated while the dialog box was up.
vector<InputEvent> dummy;
INPUTFILTER->Reset();
INPUTFILTER->GetInputEvents( dummy );
return result;
}