Try blurring the focused element.
You may need to use a setTimeout().
You should use a more specific selector than this, but here's
the sledge-hammer approach:
$(':focus').blur();
or:
setTimeout(function($(':focus').blur()),0);
The latter might be needed
if you do it from inside of an event callback.