You can apply the first solution of maxisam answer, without modifying bootstrap files (if you can not, or don’t want to).
Just write this line somewhere after bootstrap files have been included.
$.fn.modal.Constructor.prototype.enforceFocus = function () {};
Note: This has been tested with Bootstrap 2 only, not with Bootstrap 3.