MaskedInput Overriding jQuery

I have the following jQuery

$("input[type=text]").focus(function() {
    $(this).select();
});

Which simply selects the entire content in a text input when the user sets the focus. It works fine, with the exception of form fields that use the MaskedInput widget. Would anyone know how to get around this issue?