Fix for shell keeping focus when modal appears.

Closes #6. See also jcubic/jquery.terminal#169.